mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-24 07:52:19 +00:00
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:
parent
732c6c113b
commit
fda4f76103
1 changed files with 22 additions and 0 deletions
22
layouts/posts/list.html
Normal file
22
layouts/posts/list.html
Normal 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 }}
|
Loading…
Reference in a new issue