From 5aec7ac354abe106128799155eedf56c39ba9e84 Mon Sep 17 00:00:00 2001 From: leafee98 Date: Mon, 11 Sep 2023 14:34:59 +0800 Subject: [PATCH] show description of posts in index page, or summary if no description --- layouts/index.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index eb14955..7e81ddc 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -32,7 +32,13 @@ {{ end }} -
{{ .Summary }}
+
+ {{ with .Description }} + {{ . }} + {{ else }} + {{ .Summary }} + {{ end }} +
{{ end }}