summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/partials/release.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html
index e0e8308..e815b92 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,3 +1,3 @@
{{ define "main" }}
- {{ .Content }}
+ {{ .Content | replaceRE "(<h[1-6] id=\"([^\"]+)\".+)(</h[1-6]+>)" "${1}&nbsp;<a class=\"headline-hash\" href=\"#${2}\">#</a> ${3}" | safeHTML }}
{{ end }}
diff --git a/layouts/partials/release.html b/layouts/partials/release.html
index 1c5972a..7bd1c1a 100644
--- a/layouts/partials/release.html
+++ b/layouts/partials/release.html
@@ -13,4 +13,4 @@
Version number: {{ .Params.version_number }}
</p>
</div>
-{{ .Content }}
+{{ .Content | replaceRE "(<h[1-6] id=\"([^\"]+)\".+)(</h[1-6]+>)" "${1}&nbsp;<a class=\"headline-hash\" href=\"#${2}\">#</a> ${3}" | safeHTML }}