diff options
| author | Weichen Liu <weichl@hotmail.com> | 2021-01-02 09:00:20 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-02 22:30:20 +0530 |
| commit | 946cc1ffe35dbf5fcac4f5e2a636592110953610 (patch) | |
| tree | 6fe312098d5da4c74d131583410736cd66099aaa /layouts/_default/single.html | |
| parent | 5d6de5ecb1febac645b56cca7596ad0ce2ab9054 (diff) | |
single: Add post description (#165)
usage =>
in post params add :
description: "Desc Text."
Diffstat (limited to 'layouts/_default/single.html')
| -rw-r--r-- | layouts/_default/single.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 21e8e79..0f1480b 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -6,6 +6,9 @@ {{ .Title }} {{- if .Draft }}<div class="entry-isdraft"><sup> [draft]</sup></div>{{- end }} </h1> + <div class="post-description"> + {{ .Description }} + </div> {{- if .Params.hideMeta }}{{ else }} <div class="post-meta"> {{- partial "post_meta.html" . -}} |
