Theme Update
This commit is contained in:
parent
93515f310d
commit
f2ebaae569
@ -249,3 +249,36 @@ footer a {
|
||||
margin-top: 0;
|
||||
margin-bottom: .5rem;
|
||||
}
|
||||
|
||||
|
||||
/* Autonumbering */
|
||||
|
||||
.autonumber {
|
||||
counter-reset: h2-counter 0;
|
||||
}
|
||||
|
||||
.autonumber h2 {
|
||||
counter-increment: h2-counter 1;
|
||||
counter-reset: h3-counter 0;
|
||||
}
|
||||
|
||||
.autonumber h3 {
|
||||
counter-increment: h3-counter 1;
|
||||
counter-reset: h4-counter 0;
|
||||
}
|
||||
|
||||
.autonumber h4 {
|
||||
counter-increment: h4-counter 1;
|
||||
}
|
||||
|
||||
.autonumber h2:before {
|
||||
content: counter(h2-counter) "\00a0\00a0";
|
||||
}
|
||||
|
||||
.autonumber h3:before {
|
||||
content: counter(h2-counter) "." counter(h3-counter) "\00a0\00a0";
|
||||
}
|
||||
|
||||
.autonumber h4:before {
|
||||
content: counter(h2-counter) "." counter(h3-counter) "." counter(h4-counter) "\00a0\00a0";
|
||||
}
|
@ -2,7 +2,9 @@
|
||||
|
||||
{{/* Intro */}}
|
||||
|
||||
<div class="single-intro-container">
|
||||
<div {{ if .Param "autonumber" }} class="autonumber" {{end}}>
|
||||
|
||||
<div class=" single-intro-container">
|
||||
|
||||
{{/* Title and Summary */}}
|
||||
|
||||
@ -25,21 +27,23 @@
|
||||
{{end }}
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{/* Table of Content */}}
|
||||
{{/* Table of Content */}}
|
||||
|
||||
{{if .Param "toc" }}
|
||||
<aside class="toc">
|
||||
{{if .Param "toc" }}
|
||||
<aside class="toc">
|
||||
<p><strong>Table of contents</strong></p>
|
||||
{{ .TableOfContents }}
|
||||
</aside>
|
||||
{{ end }}
|
||||
</aside>
|
||||
{{ end }}
|
||||
|
||||
{{/* Actual document content */}}
|
||||
{{/* Actual document content */}}
|
||||
|
||||
<div class="single-content">
|
||||
<div class="single-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{{ end }}
|
Loading…
Reference in New Issue
Block a user