💄 Add list number before table of content and article's head outline.

This commit is contained in:
凡梦星尘
2022-09-29 10:24:41 +08:00
parent 70cba4cc6a
commit 28a3d36f88
17 changed files with 131 additions and 107 deletions

View File

@@ -42,6 +42,32 @@
}
}
.autonumber {
h2 {
counter-reset: h3;
&:before{
counter-increment: h2;
content: counter(h2) ". ";
}
}
h3 {
counter-reset: h4;
&:before{
counter-increment: h3;
content: counter(h2) ". " counter(h3) ". ";
}
}
h4 {
counter-reset: h5;
&:before{
counter-increment: h4;
content: counter(h2) "." counter(h3) "." counter(h4) ". ";
}
}
}
@import 'post-collapse';
@import 'post-body';
@import 'post-gallery';