Added param submitted to control display of author and date on posts.

This commit is contained in:
Fredrik Jonsson 2017-05-18 14:05:07 +02:00
commit a0e3be452c

View file

@ -7,10 +7,7 @@
<h1>{{ .Title }}</h1>
<article class="{{ with .Section }}section-{{ . | urlize }}{{ end }} single-view">
<header>
<p class="submitted">
{{ with $.Param "author" }}<span class="author">{{ . }}</span> – {{ end -}}
<span class="created-date">{{ .Date.Format "2 January, 2006" }}</span>
</p>
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . -}}{{ end }}
</header>
<div>
{{ .Content }}