mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-21 23:05:43 +01:00
layouts: fix rss and sitemap generation
This commit is contained in:
parent
380c9bcf50
commit
ac99804480
@ -6,7 +6,7 @@
|
||||
<author>Citra</author>
|
||||
<rights>Copyright (c) 2017, Citra; all rights reserved.</rights>
|
||||
<updated>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</updated>
|
||||
{{ range where .Data.Pages "Section" "entry" }}
|
||||
{{ range where .Site.RegularPages "Section" "entry" }}
|
||||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
@ -18,4 +18,3 @@
|
||||
{{ end }}
|
||||
</channel>
|
||||
</rss>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
|
||||
{{ range .Data.Pages }}
|
||||
{{ range .Site.RegularPages }}
|
||||
{{ if (eq .IsPage true) }}
|
||||
{{ $rating := index .Site.Data.compatibility ( string .Params.compatibility | default "0" ) }}
|
||||
<url>
|
||||
@ -23,4 +23,3 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</urlset>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user