blog/layouts/_default/list.html

36 lines
552 B
HTML
Raw 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">
{{ range $.Param "authors" }}
{{ . }}
{{ end }}
</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 }}