Skip to content

Commit

Permalink
Condense post list
Browse files Browse the repository at this point in the history
  • Loading branch information
davegallant committed Apr 8, 2024
1 parent 8d898eb commit f56e856
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion themes/custom-theme/assets/css/critical/40-post.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.post,
.content-section {
border-bottom: 2px dotted var(--bg1);
padding: 2rem 0;
padding: 0rem 0;
}

.post {
Expand Down
7 changes: 5 additions & 2 deletions themes/custom-theme/layouts/partials/post-list.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{{ range $pageIndex, $page := .Pages }}
<article class="post">
<div class="post-header">
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
{{ partial "post-meta.html" (dict "page" . "pageIndex" $pageIndex) }}
<div class="post-meta">
{{- with $page.Date -}}
<span>{{ .Format "2006-01-02" }}</span>
{{- end -}}: <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
</div>
</div>
</article>
{{ end }}
Expand Down

0 comments on commit f56e856

Please sign in to comment.