From 2678b8b107d464a89e4d0b939d6dc5cb51f00ee0 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sun, 11 Dec 2022 17:55:56 -0800 Subject: [PATCH] Create paige_content.html --- layouts/_default/home.html | 4 +--- layouts/partials/paige_content.html | 3 +++ layouts/partials/paige_page.html | 4 +--- 3 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 layouts/partials/paige_content.html diff --git a/layouts/_default/home.html b/layouts/_default/home.html index de014335..54b8b184 100644 --- a/layouts/_default/home.html +++ b/layouts/_default/home.html @@ -36,9 +36,7 @@ {{ end }} -{{ if .Content }} -{{ .Content }} -{{ end }} +{{ partial "paige_content.html" . }} {{ if .Site.Social }}
diff --git a/layouts/partials/paige_content.html b/layouts/partials/paige_content.html new file mode 100644 index 00000000..7a811713 --- /dev/null +++ b/layouts/partials/paige_content.html @@ -0,0 +1,3 @@ +{{ if .Content }} +{{ .Content | replaceRE `()` `${1}${3}` | safeHTML }} +{{ end }} diff --git a/layouts/partials/paige_page.html b/layouts/partials/paige_page.html index e569b222..cea8e67b 100644 --- a/layouts/partials/paige_page.html +++ b/layouts/partials/paige_page.html @@ -13,6 +13,4 @@ {{ if .PublishDate }}

{{ end }} -{{ if .Content }} -{{ .Content | replaceRE `()` `${1}${3}` | safeHTML }} -{{ end }} +{{ partial "paige_content.html" . }}