36 lines
552 B
HTML
36 lines
552 B
HTML
|
{{ 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" }}
|
||
|
—
|
||
|
<time datetime="{{ $dateTime }}">
|
||
|
{{ $dateTime }}
|
||
|
</time>
|
||
|
<br />
|
||
|
{{ .Description }}
|
||
|
</p>
|
||
|
</li>
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
{{ end }}
|