mirror of
https://gitea.com/gitea/theme.git
synced 2026-05-03 18:22:38 +08:00
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:
3
layouts/shortcodes/toc.html
Normal file
3
layouts/shortcodes/toc.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="toc">
|
||||
{{ .Page.TableOfContents }}
|
||||
</div>
|
||||
@@ -119,3 +119,7 @@
|
||||
z-index: 1;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.toc {
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user