Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/panr/hugo-theme-hello-friend.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/_markup/render-heading.html')
-rw-r--r--layouts/_default/_markup/render-heading.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html
new file mode 100644
index 0000000..8e9160a
--- /dev/null
+++ b/layouts/_default/_markup/render-heading.html
@@ -0,0 +1,4 @@
+<h{{ .Level }} id="{{ .Anchor | safeURL }}">
+ {{ .Text | safeHTML }}
+ <a href="#{{ .Anchor | safeURL }}" class="h-anchor" aria-hidden="true">#</a>
+</h{{ .Level }}>