added post param to hide date from single post view
This commit is contained in:
parent
35cdd183eb
commit
f9c98de489
3 changed files with 15 additions and 12 deletions
|
|
@ -2,10 +2,12 @@
|
|||
{{- partial "inject/content-before.html" . -}}
|
||||
<article class="card {{ if .Site.Params.discreteCards }}discrete{{ end }} single">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p class="date">
|
||||
<span title="Date"> </span>
|
||||
{{ .Date.Format "2006-01-02" }}
|
||||
</p>
|
||||
{{ if (.Params.showDate | default true) }}
|
||||
<p class="date">
|
||||
<span title="Date"> </span>
|
||||
{{ .Date.Format "2006-01-02" }}
|
||||
</p>
|
||||
{{ end }}
|
||||
{{ if .Params.Image }}
|
||||
<img src="{{ .Params.Image }}" alt="" />
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue