mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2025-06-03 14:22:35 +00:00
Simplify post meta template
This commit is contained in:
parent
8369d9a3a7
commit
5cba28f865
@ -1,6 +1,4 @@
|
||||
{{ $dateFormat := (default "January 2, 2006" .Site.Params.BookDateFormat) }}
|
||||
{{ if or .Date .Params.tags }}
|
||||
<div>
|
||||
{{ with .Date}}
|
||||
<h5>{{ .Format $dateFormat }}</h5>
|
||||
{{ end }}
|
||||
@ -16,6 +14,3 @@
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue
Block a user