From 89c2f6ca881e4acf518e3635afcbd2bbad7ee8e8 Mon Sep 17 00:00:00 2001 From: Yang Ji <408776303@qq.com> Date: Mon, 6 Apr 2020 21:22:06 +0800 Subject: Feat: default display description Default display description if description set. --- layouts/index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 69bf2b6..6cd7fd6 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -16,9 +16,13 @@ {{ partial "post/title.html" . -}} {{- .Scratch.Delete "class_name"}} - {{- if .Summary }} + {{- if .Description }}
- {{- .Summary -}} + {{- .Description -}} +
+ {{ else if .Summary }} +
+ {{ .Summary }}
{{- end }}

-- cgit v1.2.3