Skip to content

Commit

Permalink
style: show the description of post if set (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang authored Jul 13, 2023
1 parent 74f783a commit a5ba66f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layouts/partials/hb/modules/blog/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ <h1 class="hb-blog-post-title mb-2">{{ .Title }}</h1>
{{ partialCached "hb/modules/blog/post/meta/reading-time" . . }}
{{ partialCached "hb/modules/blog/post/meta/taxonomies" . . }}
</div>
{{- with .Description }}
<div class="hb-blog-post-desc lead mb-5">{{ . }}</div>
{{- end }}
</div>
<div
class="hb-blog-post-toc mt-2 text-body-secondary position-sticky overflow-y-auto">
Expand Down

0 comments on commit a5ba66f

Please sign in to comment.