Simplify post meta template
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
{{ $dateFormat := (default "January 2, 2006" .Site.Params.BookDateFormat) }}
|
{{ $dateFormat := (default "January 2, 2006" .Site.Params.BookDateFormat) }}
|
||||||
{{ if or .Date .Params.tags }}
|
|
||||||
<div>
|
|
||||||
{{ with .Date}}
|
{{ with .Date}}
|
||||||
<h5>{{ .Format $dateFormat }}</h5>
|
<h5>{{ .Format $dateFormat }}</h5>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -16,6 +14,3 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user