From f4701e7fa665eb88dad3428c4a36058dbc78a6da Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Thu, 26 Aug 2021 01:07:17 +0200 Subject: [PATCH] Improve content details design --- layouts/partials/content-details.html | 24 +++++++++++++++++++----- static/src/scss/style.scss | 4 ++++ 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/layouts/partials/content-details.html b/layouts/partials/content-details.html index 99ef5d1..3c34f40 100644 --- a/layouts/partials/content-details.html +++ b/layouts/partials/content-details.html @@ -1,11 +1,25 @@ {{ if not .Date.IsZero }} - - {{ .Date.Format "2006-01-02" }} + + {{ .Date.Format "2006-01-02" }} + +{{ end }} + +{{ if not .Parent.IsHome }} + {{ if gt .ReadingTime 2 }} + + {{ .ReadingTime }} minutes + {{ end }} + + {{ .WordCount }} words + {{ end }} {{ if .Params.tags }} - {{ range $1, $e := .Params.tags }} - #{{ . }} - {{ end }} + + + + {{ range $i, $e := .Params.tags }} + #{{ . }} + {{ end }} {{ end }} diff --git a/static/src/scss/style.scss b/static/src/scss/style.scss index 9b5a4e5..35e0def 100644 --- a/static/src/scss/style.scss +++ b/static/src/scss/style.scss @@ -128,3 +128,7 @@ h1, h2, h3, h4, h5, h6 { ul ul, ol ol { padding-left: $spacer * 1.5; } + +.content-detail { + text-indent: 2em; +}