add check to display post-description in single

This commit is contained in:
Aditya Telange 2021-01-28 20:35:45 +05:30
parent cc4fb70336
commit a7e0b2f5a9

View File

@ -6,9 +6,11 @@
{{ .Title }}
{{- if .Draft }}<div class="entry-isdraft"><sup>&nbsp;&nbsp;[draft]</sup></div>{{- end }}
</h1>
{{- if .Description }}
<div class="post-description">
{{ .Description }}
</div>
{{- end }}
{{- if not (.Param "hideMeta") }}
<div class="post-meta">
{{- partial "post_meta.html" . -}}