Download und feed so umgestellt, dass die Dateien auch über eine url definiert werden können

This commit is contained in:
mdn 2023-01-14 21:03:12 +01:00
parent 2a1daf1f52
commit 9219975673
2 changed files with 8 additions and 3 deletions

View file

@ -12,7 +12,13 @@
<item>
<title>{{ .title }}</title>
<description>{{ .comment }}</description>
<link>{{ (path.Join $baseDir .filename) | absURL }}</link>
<link>
{{ if isset . "url" }}
{{- .url | safeURL -}}
{{ else }}
{{- (path.Join $baseDir .filename) | absURL -}}
{{ end }}
</link>
<author>{{ with $.Site.Author.email }}{{.}}{{end}}</author>
<guid></guid>
<pubDate>{{ (time .published).Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>