From 0891925b07ce641e1630726d52f27b6950687326 Mon Sep 17 00:00:00 2001
From: Jason Ernst
Date: Tue, 22 Sep 2026 19:54:42 -0700
Subject: [PATCH] Render post, page and comment bodies from the server
goblog v0.10.0 renders markdown server-side, so the theme drops its
showdown and DOMPurify script tags and renders {{ .post.HTML }},
{{ .page.HTML }} and each comment's {{ .HTML }} instead. The post body
now reaches crawlers and link-preview bots, and the YouTube and
Instagram embeds DOMPurify used to strip work again.
The comment Preview button shows the draft as plain text, since no
markdown library is loaded on the page any more.
Co-Authored-By: Claude Opus 5 (1M context)
---
CHANGELOG.md | 6 ++++++
goblog-theme.json | 2 +-
templates/page_content.html | 9 +-------
templates/post.html | 41 +++----------------------------------
4 files changed, 11 insertions(+), 47 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bb21a5f..064a2a5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,9 @@
+## 1.2.0
+
+- Post, page and comment bodies are rendered by goblog on the server; the theme no longer ships showdown or DOMPurify. Embeds that DOMPurify used to strip (YouTube, Instagram) work again, and the body reaches crawlers and link-preview bots.
+- The comment Preview button shows the draft as plain text, since no markdown library is loaded on the page.
+- Requires goblog 0.10.0.
+
## 1.1.0
- The search page includes goblog's shared `_search_results` partial instead of rendering the post list itself, so plugin, theme and docs hits appear in the site search. The result colours the template used to set inline now come from `goblog.css`.
diff --git a/goblog-theme.json b/goblog-theme.json
index fa37fc7..450b50d 100644
--- a/goblog-theme.json
+++ b/goblog-theme.json
@@ -4,6 +4,6 @@
"description": "Misty greens, a soft serif and a full-bleed forest backdrop — goblog's forest theme.",
"author": "Jason Ernst",
"license": "Apache-2.0",
- "min_goblog_version": "0.8.0",
+ "min_goblog_version": "0.10.0",
"homepage": "https://github.com/goblogplatform/goblog-theme-forest"
}
diff --git a/templates/page_content.html b/templates/page_content.html
index 67e10b8..c192e45 100644
--- a/templates/page_content.html
+++ b/templates/page_content.html
@@ -8,14 +8,7 @@
{{ .page.Title }}
{{ if .has_plugin_content }}
{{ .plugin_content | rawHTML }}
{{ else }}
-
-
-
-
+
{{ .page.HTML }}
{{ end }}
diff --git a/templates/post.html b/templates/post.html
index 60f9430..2ec8947 100644
--- a/templates/post.html
+++ b/templates/post.html
@@ -22,7 +22,7 @@