mirror of
https://git.kittycat.homes/zoe/hugo-battheme.git
synced 2024-08-15 03:25:18 +00:00
clickable headers
This commit is contained in:
parent
2e52a4843f
commit
2c56b25d22
10 changed files with 207 additions and 108 deletions
5
layouts/_default/_markup/render-heading.html
Normal file
5
layouts/_default/_markup/render-heading.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<h{{ .Level }} id="{{ .Anchor | safeURL }}" class="colorswitch">
|
||||
<a class="hash-link colorswitch" href="#{{ .Anchor | safeURL }}">
|
||||
{{ .Text | safeHTML }}
|
||||
</a>
|
||||
</h{{ .Level }}>
|
Loading…
Add table
Add a link
Reference in a new issue