From 0a0a1877cebe085e998cea17fd9911fb5b4ee7f8 Mon Sep 17 00:00:00 2001 From: Yuanfei He Date: Wed, 8 Jul 2020 22:17:31 +0800 Subject: :lipstick: add home post style --- layouts/_default/single.html | 1 - layouts/index.html | 18 ++++++++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c9b9863..2360a2c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -41,7 +41,6 @@ {{if .PrevPage}} {{end}} diff --git a/layouts/index.html b/layouts/index.html index 29c87c5..faf40fc 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -41,12 +41,22 @@ {{ end }}

{{ .Title }}

-

{{.Date.Format "2006-01-02"}}

-

Word Count: {{ .WordCount }}   | - Reading Time: {{ .ReadingTime }} Minute  

+

{{.Date.Format "2006-01-02"}}

+

+{{ with .Params.categories }} + + {{ range . }} + {{ . }} + {{ end }} + | + {{ end }} + Word Count: {{ .WordCount }}   | + Reading Time: {{ .ReadingTime }} Minute   +

+

{{ .Summary | markdownify }}....

{{ partial "post/tag/list" . }} - + {{ end }} -- cgit v1.2.3