Make comments toggleable, remove word count, and give tags some space

This commit is contained in:
BBaoVanC 2021-10-23 23:24:05 -05:00
parent cb68e3cffd
commit e0f04cb279
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
5 changed files with 8 additions and 7 deletions

View File

@ -3,6 +3,7 @@
title: {{ replace .Name "-" " " | title }} title: {{ replace .Name "-" " " | title }}
date: {{ .Date | time.Format "2006-01-02" }} date: {{ .Date | time.Format "2006-01-02" }}
toc: true toc: true
comments: true
draft: true draft: true
tags: tags:

View File

@ -3,6 +3,7 @@
title: {{ replace .Name "-" " " | title }} title: {{ replace .Name "-" " " | title }}
menu: main menu: main
toc: true toc: true
comments: false
--- ---

View File

@ -26,6 +26,10 @@
margin-bottom: 15px; margin-bottom: 15px;
} }
.tags {
margin-top: 10px;
}
.post-media { .post-media {
margin-top: 15px; margin-top: 15px;
display: inline-block; display: inline-block;

View File

@ -41,6 +41,8 @@
</div> </div>
{{ end }} {{ end }}
{{ if .Params.comments }}
{{ partial "comments.html" . }} {{ partial "comments.html" . }}
{{ end }}
{{ end }} {{ end }}

View File

@ -29,13 +29,6 @@
</span> </span>
{{ end }} {{ end }}
{{ if ne .Site.Params.wordcount false }}
<span class="post-meta-item">
{{ partial "icon.html" "type" }}
{{ i18n "wordcount" .WordCount }}
</span>
{{ end }}
{{ if ne .Site.Params.readingtime false }} {{ if ne .Site.Params.readingtime false }}
<span class="post-meta-item"> <span class="post-meta-item">
{{ partial "icon.html" "clock" }} {{ partial "icon.html" "clock" }}