From 6821a0e0e131e409e28b00a6f4321a2b42582304 Mon Sep 17 00:00:00 2001 From: Huy Tran Date: Thu, 30 Aug 2018 08:51:30 +0700 Subject: [PATCH] adds support to .Description #30 --- layouts/index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/index.html b/layouts/index.html index 8a2b521..202ad80 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -13,7 +13,11 @@ {{ .Date.Format (.Site.Params.dateformat | default "Jan 02, 2006") }} + {{ if .Description }} + {{ .Description }} + {{ else }} {{ .Summary }} + {{ end }} {{ if .Truncated }}