diff options
author | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-02-24 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-02-24 00:00:00 +0000 |
commit | 9433a812f2184fa99eeb6ce6249bb49cfc0926bb0e7c3e5bd5b7d42676eee5e7 (patch) | |
tree | e12b5f22cb4cda7471d29cfc0e79fed860d4c5c2aaa5866c59282efeb3e97760 /layouts/partials | |
parent | f52991466a86a32ebaa3ba8dd1f3cc77ea609b0a6aed370470242bfffa1d8cdf (diff) | |
download | hugo-theme-journal-9433a812f2184fa99eeb6ce6249bb49cfc0926bb0e7c3e5bd5b7d42676eee5e7.tar.gz hugo-theme-journal-9433a812f2184fa99eeb6ce6249bb49cfc0926bb0e7c3e5bd5b7d42676eee5e7.zip |
Simplify relative URLs in Gemini metadata
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/metadata.gmi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/metadata.gmi b/layouts/partials/metadata.gmi index c110826..5e05721 100644 --- a/layouts/partials/metadata.gmi +++ b/layouts/partials/metadata.gmi @@ -1,10 +1,10 @@ {{ $entriesMinusOne := sub (len (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse) 1 }} {{- range first $entriesMinusOne (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }} {{- partial "pageinfo.gmi" . }} -=> .{{ .RelPermalink }} {{ emojify ":link:" }} {{ .Title | safeHTML }} +=> {{ .RelPermalink }} {{ emojify ":link:" }} {{ .Title | safeHTML }} {{ end }} {{- range last 1 (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }} {{- partial "pageinfo.gmi" . }} -=> .{{ .RelPermalink }} {{ emojify ":link:" }} {{ .Title | safeHTML }}{{ end }}
\ No newline at end of file +=> {{ .RelPermalink }} {{ emojify ":link:" }} {{ .Title | safeHTML }}{{ end }}
\ No newline at end of file |