Added param submitted to control display of author and date on posts.
This commit is contained in:
parent
c0b9480f7c
commit
a0e3be452c
1 changed files with 14 additions and 15 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue