From 396b84c9bbee2da571d016008710c3f4f59893cd Mon Sep 17 00:00:00 2001 From: Niko Abeler Date: Sat, 19 Nov 2022 16:02:41 +0100 Subject: [PATCH] title substitute if no title set --- embed/post-list.html | 4 +++- renderer_test.go | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/embed/post-list.html b/embed/post-list.html index 48e7b8f..e3a016c 100644 --- a/embed/post-list.html +++ b/embed/post-list.html @@ -2,7 +2,9 @@ {{range .}}
-

{{.Title}}

+

+ {{ if .Title }}{{.Title}}{{ else }}Note: {{.Id}}{{ end }} +

Published: