aboutsummaryrefslogtreecommitdiff
path: root/generators/hugo/themes/tdro/layouts/_default/_markup
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2020-06-05 03:32:48 -0400
committerThedro Neely <thedroneely@gmail.com>2020-06-05 03:32:48 -0400
commit580ccaef75b8a79bae907f9f7150c91fc2375529 (patch)
treeff30963e393d782d9da19182ac9335bb84b606c8 /generators/hugo/themes/tdro/layouts/_default/_markup
parent7b2662070b1c72710e3c7d59f9e32e9f9e14f8c2 (diff)
downloadthedroneely.com-580ccaef75b8a79bae907f9f7150c91fc2375529.tar.gz
thedroneely.com-580ccaef75b8a79bae907f9f7150c91fc2375529.tar.bz2
thedroneely.com-580ccaef75b8a79bae907f9f7150c91fc2375529.zip
hugo/_markup: Add render heading hook
Diffstat (limited to 'generators/hugo/themes/tdro/layouts/_default/_markup')
-rw-r--r--generators/hugo/themes/tdro/layouts/_default/_markup/render-heading.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/generators/hugo/themes/tdro/layouts/_default/_markup/render-heading.html b/generators/hugo/themes/tdro/layouts/_default/_markup/render-heading.html
new file mode 100644
index 0000000..54fea7c
--- /dev/null
+++ b/generators/hugo/themes/tdro/layouts/_default/_markup/render-heading.html
@@ -0,0 +1,4 @@
+<h{{ .Level }} id="{{ .Anchor | safeURL }}">
+ <a title="{{ .Text | safeHTML }}" href="#{{ .Anchor | safeURL }}">ΒΆ</a>
+ {{ .Text | safeHTML }}
+</h{{ .Level }}>