summaryrefslogtreecommitdiff
path: root/layouts/index.html
blob: e815b92e36f920a69e5e4c0c4d0cd087cca4281b (plain)
1
2
3
{{ define "main" }}
  {{ .Content | replaceRE "(<h[1-6] id=\"([^\"]+)\".+)(</h[1-6]+>)" "${1}&nbsp;<a class=\"headline-hash\" href=\"#${2}\">#</a> ${3}" | safeHTML }}
{{ end }}