Theme Update
This commit is contained in:
parent
93515f310d
commit
f2ebaae569
@ -249,3 +249,36 @@ footer a {
|
|||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: .5rem;
|
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 */}}
|
{{/* Intro */}}
|
||||||
|
|
||||||
<div class="single-intro-container">
|
<div {{ if .Param "autonumber" }} class="autonumber" {{end}}>
|
||||||
|
|
||||||
|
<div class=" single-intro-container">
|
||||||
|
|
||||||
{{/* Title and Summary */}}
|
{{/* Title and Summary */}}
|
||||||
|
|
||||||
@ -25,21 +27,23 @@
|
|||||||
{{end }}
|
{{end }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{/* Table of Content */}}
|
{{/* Table of Content */}}
|
||||||
|
|
||||||
{{if .Param "toc" }}
|
{{if .Param "toc" }}
|
||||||
<aside class="toc">
|
<aside class="toc">
|
||||||
<p><strong>Table of contents</strong></p>
|
<p><strong>Table of contents</strong></p>
|
||||||
{{ .TableOfContents }}
|
{{ .TableOfContents }}
|
||||||
</aside>
|
</aside>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{/* Actual document content */}}
|
{{/* Actual document content */}}
|
||||||
|
|
||||||
<div class="single-content">
|
<div class="single-content">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
Loading…
Reference in New Issue
Block a user