diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2024-05-18 18:29:19 +0200 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2024-05-18 18:29:19 +0200 |
commit | 0665d0c65974533fbd313f4e0b062b5103057aeb (patch) | |
tree | 5287795eed9767bd959a5139b77ef78b4024216d /src/gmi/tpl/feed.xml | |
parent | ffa26298c95451639a6e01db6692d02d50b3d518 (diff) |
Replace all URL rendering within templates by a URLConstructor
Diffstat (limited to 'src/gmi/tpl/feed.xml')
-rw-r--r-- | src/gmi/tpl/feed.xml | 8 |
1 files changed, 4 insertions, 4 deletions
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 @@ <?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom"> <title>mediocregopher's lil web corner</title> - <id>{{ BlogGeminiURL "/" }}</id> + <id>{{ .RootURL.Absolute }}</id> {{ if gt (len $posts) 0 -}} <updated>{{ (index $posts 0).PublishedAt.Format "2006-01-02T15:04:05Z07:00" }}</updated> {{ end -}} - <link href="{{ BlogGeminiURL "/" }}"></link> + <link href="{{ .RootURL.Absolute }}"></link> <author> <name>mediocregopher</name> </author> @@ -15,8 +15,8 @@ <entry> <title>{{ .Title }}</title> <updated>{{ .PublishedAt.Format "2006-01-02T15:04:05Z07:00" }}</updated> - <id>{{ PostURLAbs .ID }}</id> - <link href="{{ PostURLAbs .ID }}" rel="alternate"></link> + <id>{{ $.RootURL.Absolute.Post .ID }}</id> + <link href="{{ $.RootURL.Absolute.Post .ID }}" rel="alternate"></link> {{ if .Description -}} <summary type="html">{{ .Description }}</summary> {{ end -}} |