mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -06:00
Fix #42
This commit is contained in:
parent
179eda3450
commit
f6140abc26
@ -142,10 +142,17 @@
|
|||||||
|
|
||||||
|
|
||||||
/* Content formatting */
|
/* Content formatting */
|
||||||
|
.series-box {
|
||||||
|
background-color: #222;
|
||||||
|
padding: 16px;
|
||||||
|
border-radius: 8px;
|
||||||
|
margin: 20px 0;
|
||||||
|
}
|
||||||
|
|
||||||
#table-of-contents {
|
#table-of-contents {
|
||||||
background-color: #222;
|
background-color: #222;
|
||||||
padding: 8px 20px;
|
padding: 8px 20px;
|
||||||
border-radius: 5px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#table-of-contents summary {
|
#table-of-contents summary {
|
||||||
|
@ -8,6 +8,17 @@
|
|||||||
|
|
||||||
{{ partial "post-metadata.html" . }}
|
{{ partial "post-metadata.html" . }}
|
||||||
|
|
||||||
|
{{ with (.GetTerms "series") }}
|
||||||
|
{{ range . }}
|
||||||
|
<div class="series-box">
|
||||||
|
{{ partial "icon.html" "info" }}
|
||||||
|
This post is part of a series:
|
||||||
|
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
{{ if .Params.Toc }}
|
{{ if .Params.Toc }}
|
||||||
<div id="table-of-contents">
|
<div id="table-of-contents">
|
||||||
<details>
|
<details>
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
{{ partial "translations-meta-item.html" . }}
|
{{ partial "translations-meta-item.html" . }}
|
||||||
{{ partial "readingtime-meta-item.html" . }}
|
{{ partial "readingtime-meta-item.html" . }}
|
||||||
{{ partial "viewsource-meta-item.html" . }}
|
{{ partial "viewsource-meta-item.html" . }}
|
||||||
{{ partial "series-meta-item.html" . }}
|
|
||||||
{{ partial "tags-meta-item.html" . }}
|
{{ partial "tags-meta-item.html" . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user