Download und feed so umgestellt, dass die Dateien auch über eine url definiert werden können
This commit is contained in:
parent
2a1daf1f52
commit
9219975673
2 changed files with 8 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue