From e0f04cb279b7f436fc60b1efea5d558fe920eff6 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sat, 23 Oct 2021 23:24:05 -0500 Subject: [PATCH] Make comments toggleable, remove word count, and give tags some space --- archetypes/blog/index.md | 1 + archetypes/default/index.md | 1 + assets/css/bobastyle.css | 4 ++++ layouts/_default/single.html | 2 ++ layouts/partials/post-metadata.html | 7 ------- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/archetypes/blog/index.md b/archetypes/blog/index.md index a596619..65fc64f 100644 --- a/archetypes/blog/index.md +++ b/archetypes/blog/index.md @@ -3,6 +3,7 @@ title: {{ replace .Name "-" " " | title }} date: {{ .Date | time.Format "2006-01-02" }} toc: true +comments: true draft: true tags: diff --git a/archetypes/default/index.md b/archetypes/default/index.md index 71454b4..9bd7542 100644 --- a/archetypes/default/index.md +++ b/archetypes/default/index.md @@ -3,6 +3,7 @@ title: {{ replace .Name "-" " " | title }} menu: main toc: true +comments: false --- diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index 45ba4ac..c497a95 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -26,6 +26,10 @@ margin-bottom: 15px; } +.tags { + margin-top: 10px; +} + .post-media { margin-top: 15px; display: inline-block; diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 58c7b95..a88a497 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -41,6 +41,8 @@ {{ end }} +{{ if .Params.comments }} {{ partial "comments.html" . }} +{{ end }} {{ end }} diff --git a/layouts/partials/post-metadata.html b/layouts/partials/post-metadata.html index c6d635a..b63abe8 100644 --- a/layouts/partials/post-metadata.html +++ b/layouts/partials/post-metadata.html @@ -29,13 +29,6 @@ {{ end }} - {{ if ne .Site.Params.wordcount false }} - - {{ partial "icon.html" "type" }} - {{ i18n "wordcount" .WordCount }} - - {{ end }} - {{ if ne .Site.Params.readingtime false }} {{ partial "icon.html" "clock" }}