Create paige_content.html

master
Will Faught 3 years ago
parent 8d524fe1ac
commit 2678b8b107

@ -36,9 +36,7 @@
</div> </div>
</section> </section>
{{ end }} {{ end }}
{{ if .Content }} {{ partial "paige_content.html" . }}
{{ .Content }}
{{ end }}
{{ if .Site.Social }} {{ if .Site.Social }}
<section> <section>
<div class="pb-3 text-center"> <div class="pb-3 text-center">

@ -0,0 +1,3 @@
{{ if .Content }}
{{ .Content | replaceRE `(<h[1-9] id="([^"]+)".+)(</h[1-9]+>)` `${1}<a class="headerlink" href="#${2}"><i class="bi bi-link-45deg small"></i></a>${3}` | safeHTML }}
{{ end }}

@ -13,6 +13,4 @@
{{ if .PublishDate }} {{ if .PublishDate }}
<p class="text-center text-muted"><time datetime="{{ .PublishDate.Format `2006-01-02` }}">{{ .PublishDate.Format "January 2, 2006" }}</time></p> <p class="text-center text-muted"><time datetime="{{ .PublishDate.Format `2006-01-02` }}">{{ .PublishDate.Format "January 2, 2006" }}</time></p>
{{ end }} {{ end }}
{{ if .Content }} {{ partial "paige_content.html" . }}
{{ .Content | replaceRE `(<h[1-9] id="([^"]+)".+)(</h[1-9]+>)` `${1}<a class="headerlink" href="#${2}"><i class="bi bi-link-45deg small"></i></a>${3}` | safeHTML }}
{{ end }}

Loading…
Cancel
Save