From 31ebc27623fc67c31ba87a3dcf20363d992ff92c Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 12 Jul 2024 16:32:04 -0700 Subject: [PATCH] Remove content.html --- layouts/partials/paige/content.html | 7 ------- layouts/partials/paige/page.html | 6 +++++- 2 files changed, 5 insertions(+), 8 deletions(-) delete mode 100644 layouts/partials/paige/content.html diff --git a/layouts/partials/paige/content.html b/layouts/partials/paige/content.html deleted file mode 100644 index aadf788a..00000000 --- a/layouts/partials/paige/content.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ $page := . }} - -{{ $content := $page.Content | replaceRE `()` (printf `${1}${3}` (i18n "paige_aria_section_link")) }} - -{{ with $content }} -
{{ . | safeHTML }}
-{{ end }} diff --git a/layouts/partials/paige/page.html b/layouts/partials/paige/page.html index 108c7d18..55448c2a 100644 --- a/layouts/partials/paige/page.html +++ b/layouts/partials/paige/page.html @@ -1,6 +1,7 @@ {{ $page := . }} {{ $class := slice }} +{{ $content := $page.Content | replaceRE `()` (printf `${1}${3}` (i18n "paige_aria_section_link")) }} {{ $draft := $page.Draft }} {{ $expired := and $page.ExpiryDate (lt $page.ExpiryDate now) }} {{ $future := and $page.PublishDate (gt $page.PublishDate now) }} @@ -45,6 +46,9 @@
{{ partial "paige/page-header.html" $page }} - {{ partial "paige/content.html" $page }} + + {{ with $content }} +
{{ . | safeHTML }}
+ {{ end }}