Add ToC shortcode and CSS class (#90)

add toc shortcode and css class

Co-authored-by: pat-s <patrick.schratz@gmail.com>
Reviewed-on: https://gitea.com/gitea/theme/pulls/90
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Co-Authored-By: pat-s <pat-s@noreply.gitea.io>
Co-Committed-By: pat-s <pat-s@noreply.gitea.io>
This commit is contained in:
pat-s 2020-12-08 00:03:54 +08:00 committed by techknowlogick
parent d660fcefc2
commit 1c46f91bdf
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,3 @@
<div class="toc">
{{ .Page.TableOfContents }}
</div>

View File

@ -119,3 +119,7 @@
z-index: 1;
opacity: 1;
}
.toc {
padding-bottom: 10px;
}