From 2a347ced1b4ea8c24440f646df35207c3a3597ac Mon Sep 17 00:00:00 2001 From: grm Date: Thu, 17 Sep 2026 21:42:02 +0300 Subject: Let a post hide its date A checkbox on the post form (posts.hide_date) overriding the theme's "show the date on posts" for that post alone: listings, the post page and search results leave the date out; the feed keeps its pubDate. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A --- internal/web/templates/partials/postlist.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/web/templates/partials') diff --git a/internal/web/templates/partials/postlist.html b/internal/web/templates/partials/postlist.html index 91e248c..fce6291 100644 --- a/internal/web/templates/partials/postlist.html +++ b/internal/web/templates/partials/postlist.html @@ -6,7 +6,7 @@
{{if .Image}}{{end}}

{{.Title}}

- {{if $.Data.theme.ShowDates}}{{end}} + {{if and $.Data.theme.ShowDates (not .HideDate)}}{{end}} {{template "posttags" (dict "tags" .Tags "hash" $.Data.theme.TagHash)}}
{{html .Excerpt}}
{{if .HasMore}}

{{t "Read more"}} →

{{end}} -- cgit v1.2.3