Add a render template for headings
Create heading anchors and style them with colors and stuff
This commit is contained in:
parent
bfee27e7c5
commit
f905b16940
2 changed files with 10 additions and 0 deletions
3
layouts/_default/_markup/render-heading.html
Normal file
3
layouts/_default/_markup/render-heading.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
|
||||
<a href="#{{ .Anchor | safeURL }}">{{ .Text | safeHTML }}</a>
|
||||
</h{{ .Level }}>
|
Loading…
Add table
Add a link
Reference in a new issue