mirror of
https://gitlab.com/EternalWanderer/vugo.git
synced 2025-06-08 06:14:26 +02:00
Columns and header references
This commit is contained in:
parent
84d88dbefe
commit
33e244efd6
2 changed files with 13 additions and 2 deletions
|
@ -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" . }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue