blog/layouts/_default/list.html

34 lines
536 B
HTML
Raw Permalink Normal View History

2023-05-29 21:37:18 +00:00
{{ define "main" }}
<article>
<h1>{{ .Title }}</h1>
<div id="content">
{{ .Content }}
</div>
<p class="authors">
{{ delimit ($.Param "authors") ", " }}
2023-05-29 21:37:18 +00:00
</p>
</article>
<hr />
<h2>Posts</h2>
<ul>
{{ range .Pages }}
<li>
<p>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
&mdash;
<time datetime="{{ $dateTime }}">
{{ $dateTime }}
</time>
<br />
{{ .Description }}
</p>
</li>
{{ end }}
</ul>
{{ end }}