diff options
Diffstat (limited to 'themes/polaris/layouts/_markup/render-heading.html')
-rw-r--r-- | themes/polaris/layouts/_markup/render-heading.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/themes/polaris/layouts/_markup/render-heading.html b/themes/polaris/layouts/_markup/render-heading.html new file mode 100644 index 0000000..c4d156c --- /dev/null +++ b/themes/polaris/layouts/_markup/render-heading.html @@ -0,0 +1,4 @@ +<h{{ .Level }} id="{{ .Anchor }}" {{ with .Attributes.class }} class="{{ . }}" {{ end }}> + {{ .Text }} +{{ if and (ge .Level 2) (le .Level 3) }}<a href="#{{ .Anchor }}">#</a>{{ end }} +</h{{ .Level }}> |