diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-11-19 02:15:30 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-11-19 02:15:30 +0530 |
commit | 775772b5c4d0948a984607349fbc405380879f66 (patch) | |
tree | e70f0020c8dae738b720f50a44d6a96c4d6971a5 /layouts/index.html | |
parent | ce76814d1516ee731658fe81b792a59e57286a1f (diff) |
added heading links
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 2 |
1 files changed, 1 insertions, 1 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} <a class=\"headline-hash\" href=\"#${2}\">#</a> ${3}" | safeHTML }} {{ end }} |