Skip to content

Commit

Permalink
add check to display post-description in single
Browse files Browse the repository at this point in the history
  • Loading branch information
adityatelange committed Jan 29, 2021
1 parent cc4fb70 commit a7e0b2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ <h1 class="post-title">
{{ .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" . -}}
Expand Down

0 comments on commit a7e0b2f

Please sign in to comment.