From 10845ac09bc62c6d71c563054005b3ead0e4140c Mon Sep 17 00:00:00 2001 From: Jason Ernst Date: Sat, 3 Oct 2026 01:06:03 -0700 Subject: [PATCH] Post page: put the link sections and comments on cards The admin-only link sections and the comments were laid out directly on the background photo, outside the card the post body sits on, so their text was hard to read. Each group now gets its own glass card. Co-Authored-By: Claude Fable 5.1 --- CHANGELOG.md | 4 ++++ static/css/goblog.css | 3 +++ templates/post.html | 27 ++++++++------------------- 3 files changed, 15 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 98af637..201751c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.4.1 + +- On a post page, the admin-only link sections (Backlinks, Linked Posts, External Links, External Backlinks) and the comments sit on cards like the post body. They were drawn straight onto the background photo, where the text was hard to read. + ## 1.4.0 - The footer's "Powered by goblog" line comes from goblog's shared `_powered_by` partial instead of being written out in the theme. It now links to [goblog.live](https://www.goblog.live) rather than the GitHub repository, and a site can hide it with the **Show "Powered by goblog"** setting under Admin → Settings → Appearance (goblog #644). diff --git a/static/css/goblog.css b/static/css/goblog.css index fe231fe..0a01507 100644 --- a/static/css/goblog.css +++ b/static/css/goblog.css @@ -108,3 +108,6 @@ video { /* The "Powered by goblog" credit is goblog's shared _powered_by partial; its link takes the colour of the footer line around it. */ .powered-by a { color: inherit; } + +/* Admin-only link sections under a post */ +.post-links + .post-links { margin-top: 24px; } diff --git a/templates/post.html b/templates/post.html index 2ec8947..d8d4711 100644 --- a/templates/post.html +++ b/templates/post.html @@ -27,8 +27,8 @@

{{ .post.Title {{ if .is_admin }} -
-
+
+

Backlinks

Posts that link to this post

{{ if .backlinks }} @@ -41,10 +41,8 @@

Backlinks

None

{{ end }}
-
-
-
+

Linked Posts

Blog posts this post links to

{{ if .outbound_links }} @@ -57,10 +55,8 @@

Linked Posts

None

{{ end }}
-
-
-
+

External Links

External URLs in this post

{{ if .post.ExternalLinks }} @@ -73,10 +69,8 @@

External Links

None

{{ end }}
-
-
-
+

External Backlinks

External sites linking to this post

{{ if .external_backlinks }} @@ -107,14 +101,9 @@

External Backlinks

{{ end }} -
- - - -
-
-
-
+ +
+

Comments ({{ len .comments }})

{{ if .comment_error }}