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
|
|
@ -1,12 +1,11 @@
|
|||
<article class="{{ with .Section }}section-{{ . | urlize }}{{ end }} full-view">
|
||||
<header>
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
||||
<p class="submitted">
|
||||
{{ with $.Param "author" }}<span class="author">{{ . }}</span> – {{ end -}}
|
||||
<span class="created-date">{{ .Date.Format "2 January, 2006" }}</span>
|
||||
</p>
|
||||
<h2 class="title {{ if $.Param "submitted" | default false }}title-submitted{{ end }}"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
||||
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . -}}{{ end }}
|
||||
</header>
|
||||
<div>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue