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" . }}