Columns and header references

This commit is contained in:
Nox Sluijtman 2022-09-18 12:29:02 +02:00
parent 84d88dbefe
commit 33e244efd6
2 changed files with 13 additions and 2 deletions

View file

@ -39,9 +39,15 @@
</div>
{{ end }}
{{ if eq .Type $.Site.Params.contentTypeName }}
<div class="post-content">
{{ .Content }}
{{- with .Content -}}
{{ . | replaceRE "(<h[1-9] id=\"([^\"]+)\".+)(</h[1-9]+>)" `${1} <a href="#${2}" class="anchor" ariaLabel="Anchor">#</a> ${3}` | safeHTML }}
{{- end -}}
</div>
{{ else }}
{{ .Content }}
{{ end }}
{{ if eq .Type $.Site.Params.contentTypeName }}
{{ partial "posts_pagination.html" . }}