posts layout override

- support new posts path (732c6c1 (move posts from content/post to
  content/posts, 2023-08-15))
- remove author info
- ensure vertical space between entries
This commit is contained in:
John Bowdre 2023-08-15 10:20:59 -05:00
parent 732c6c113b
commit fda4f76103

22
layouts/posts/list.html Normal file
View file

@ -0,0 +1,22 @@
{{ define "main" }}
<header class="content__header">
<h1>{{ .Title | markdownify }}</h1>
{{ .Content }}
</header>
{{ range .Pages }}
<article class="post">
<header class="post__header">
<h1><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<p class="post__meta">
<span class="date">{{ .Date.Format "2 January 2006" }}</span>
</p>
</header>
<section class="post__summary">
{{ .Summary }}
</section>
<br>
</article>
{{ end }}
{{ end }}