mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 10:31:39 +01:00
add check to display post-description in single
This commit is contained in:
parent
cc4fb70336
commit
a7e0b2f5a9
@ -6,9 +6,11 @@
|
|||||||
{{ .Title }}
|
{{ .Title }}
|
||||||
{{- if .Draft }}<div class="entry-isdraft"><sup> [draft]</sup></div>{{- end }}
|
{{- if .Draft }}<div class="entry-isdraft"><sup> [draft]</sup></div>{{- end }}
|
||||||
</h1>
|
</h1>
|
||||||
|
{{- if .Description }}
|
||||||
<div class="post-description">
|
<div class="post-description">
|
||||||
{{ .Description }}
|
{{ .Description }}
|
||||||
</div>
|
</div>
|
||||||
|
{{- end }}
|
||||||
{{- if not (.Param "hideMeta") }}
|
{{- if not (.Param "hideMeta") }}
|
||||||
<div class="post-meta">
|
<div class="post-meta">
|
||||||
{{- partial "post_meta.html" . -}}
|
{{- partial "post_meta.html" . -}}
|
||||||
|
Loading…
Reference in New Issue
Block a user