mirror of
https://github.com/imfing/hextra.git
synced 2025-06-20 04:21:36 -04:00
feat: implement common components
feat: implement sidebar feat: implement footer feat: implement breadcrumb chore: add typography styles chore: add heading anchor link chore: add postcss-nested
This commit is contained in:
7
layouts/_default/_markup/render-heading.html
Normal file
7
layouts/_default/_markup/render-heading.html
Normal file
@ -0,0 +1,7 @@
|
||||
<h{{ .Level }}>
|
||||
{{ .Text | safeHTML }}
|
||||
{{ if gt .Level 1 }}
|
||||
<span class="absolute -mt-20" id="{{ .Anchor | safeURL }}"></span>
|
||||
<a href="#{{ .Anchor | safeURL }}" class="subheading-anchor" aria-label="Permalink for this section"></a>
|
||||
{{ end }}
|
||||
</h{{ .Level }}>
|
Reference in New Issue
Block a user