mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 12:13:19 -06:00
Make comments toggleable, remove word count, and give tags some space
This commit is contained in:
parent
cb68e3cffd
commit
e0f04cb279
@ -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:
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
title: {{ replace .Name "-" " " | title }}
|
title: {{ replace .Name "-" " " | title }}
|
||||||
menu: main
|
menu: main
|
||||||
toc: true
|
toc: true
|
||||||
|
comments: false
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -41,6 +41,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if .Params.comments }}
|
||||||
{{ partial "comments.html" . }}
|
{{ partial "comments.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -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" }}
|
||||||
|
Loading…
Reference in New Issue
Block a user