blog/layouts/_default/single.html

28 lines
436 B
HTML

{{ define "main" }}
<article>
<h1>
{{ .Title }}
</h1>
<p class="subtitle">
{{ .Description }}
</p>
<p class="publication-time">
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
<time datetime="{{ $dateTime }}">
{{ $dateTime }}
</time>
</p>
<div id="content">
{{ .Content }}
</div>
<p class="authors">
{{ range $.Param "authors" }}
{{ . }}
{{ end }}
</p>
</article>
{{ end }}