Improvments to the micro templates.

This commit is contained in:
Fredrik Jonsson 2019-04-17 14:26:13 +02:00
commit 006879a0a8

View file

@ -1,7 +1,10 @@
<article class="{{ with .Section }}section-{{ . | urlize }} {{ end }}list-view">
<header>
<h2 class="title hidden">{{ .Title }}</h2>
{{ if $.Param "submitted" | default false }}<a href="{{ .RelPermalink }}">{{ partial "submitted.html" . -}}</a>{{ end }}
<h2 class="hidden">{{ .Title }}</h2>
<p><a href="{{ .RelPermalink }}">
{{ with $.Param "author" }}<span class="author">{{ . }}</span> – {{ end -}}
<time class="modified-date" datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Lastmod.Format ($.Param "dateformat" | default "2 January, 2006") }}</time>
</a></p>
</header>
<div class="content">
{{ .Content }}