Shortcodes für Tabelle und Downloads eingebaut sowie eigenen Typ für feed gebaut
This commit is contained in:
parent
23649f935f
commit
f8c72825f0
9 changed files with 137 additions and 4 deletions
22
layouts/feed/rss.xml
Normal file
22
layouts/feed/rss.xml
Normal file
|
@ -0,0 +1,22 @@
|
|||
{{ $baseDir := path.Dir .Page.File }}
|
||||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
<title>{{ .Page.Params.title }}</title>
|
||||
<link>{{ .Site.BaseURL }}</link>
|
||||
<description>{{ .Page.Params.description }}</description>
|
||||
<language>{{ .Site.LanguageCode }}</language>
|
||||
<copyright>{{ with .Site.Author.email }}{{.}}{{end}}</copyright>
|
||||
<pubDate>{{ now.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
{{ range (index .Site.Data ( .Page.Params.dataname )) }}
|
||||
<item>
|
||||
<title>{{ .title }}</title>
|
||||
<description>{{ .comment }}</description>
|
||||
<link>{{ (path.Join $baseDir .filename) | absURL }}</link>
|
||||
<author>{{ with $.Site.Author.email }}{{.}}{{end}}</author>
|
||||
<guid></guid>
|
||||
<pubDate>{{ (time .published).Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
</item>
|
||||
{{ end }}
|
||||
</channel>
|
||||
</rss>
|
Loading…
Add table
Add a link
Reference in a new issue