Improvments to the micro templates.
This commit is contained in:
parent
15c6c89fce
commit
006879a0a8
1 changed files with 34 additions and 4 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue