runtimeterror/layouts/posts/list.html
John Bowdre fda4f76103 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
2023-08-15 10:25:48 -05:00

23 lines
593 B
HTML

{{ 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 }}