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
1 changed files with 2 additions and 0 deletions

View File

@ -6,9 +6,11 @@
{{ .Title }} {{ .Title }}
{{- if .Draft }}<div class="entry-isdraft"><sup>&nbsp;&nbsp;[draft]</sup></div>{{- end }} {{- if .Draft }}<div class="entry-isdraft"><sup>&nbsp;&nbsp;[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" . -}}