From 0665d0c65974533fbd313f4e0b062b5103057aeb Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sat, 18 May 2024 18:29:19 +0200 Subject: Replace all URL rendering within templates by a URLConstructor --- src/gmi/tpl/feed.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gmi/tpl/feed.xml') diff --git a/src/gmi/tpl/feed.xml b/src/gmi/tpl/feed.xml index aa596b7..2935327 100644 --- a/src/gmi/tpl/feed.xml +++ b/src/gmi/tpl/feed.xml @@ -3,11 +3,11 @@ mediocregopher's lil web corner - {{ BlogGeminiURL "/" }} + {{ .RootURL.Absolute }} {{ if gt (len $posts) 0 -}} {{ (index $posts 0).PublishedAt.Format "2006-01-02T15:04:05Z07:00" }} {{ end -}} - + mediocregopher @@ -15,8 +15,8 @@ {{ .Title }} {{ .PublishedAt.Format "2006-01-02T15:04:05Z07:00" }} - {{ PostURLAbs .ID }} - + {{ $.RootURL.Absolute.Post .ID }} + {{ if .Description -}} {{ .Description }} {{ end -}} -- cgit v1.2.3