mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-22 07:25:40 +01:00
Added RSS and Sitemap.
This commit is contained in:
parent
d7252947b1
commit
b727987180
21
layouts/rss.xml
Normal file
21
layouts/rss.xml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
|
<channel>
|
||||||
|
<title>{{ .Title }} on {{ .Site.Title }} </title>
|
||||||
|
<link>{{ .Permalink }}</link>
|
||||||
|
<language>en-US</language>
|
||||||
|
<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" }}
|
||||||
|
<item>
|
||||||
|
<title>{{ .Title }}</title>
|
||||||
|
<link>{{ .Permalink }}</link>
|
||||||
|
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate>
|
||||||
|
<author>{{ .Params.Author }}</author>
|
||||||
|
<guid>{{ .Permalink }}</guid>
|
||||||
|
<description>{{ .Summary | html }}</description>
|
||||||
|
</item>
|
||||||
|
{{ end }}
|
||||||
|
</channel>
|
||||||
|
</rss>
|
||||||
|
|
26
layouts/sitemap.xml
Normal file
26
layouts/sitemap.xml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
|
||||||
|
{{ range .Data.Pages }}
|
||||||
|
{{ if (eq .IsPage true) }}
|
||||||
|
{{ $rating := index .Site.Data.compatibility ( string .Params.compatibility | default "0" ) }}
|
||||||
|
<url>
|
||||||
|
|
||||||
|
<loc>{{ .Permalink }}</loc>
|
||||||
|
|
||||||
|
{{ if (eq .Section "entry") }}
|
||||||
|
<image:image>
|
||||||
|
<image:loc>{{ .Site.BaseURL }}/images/banners/{{ .Params.Banner | default (print .File.BaseFileName ".png") }}</image:loc>
|
||||||
|
</image:image>
|
||||||
|
{{ else if (eq .Section "game") }}
|
||||||
|
<image:image>
|
||||||
|
<image:loc>{{ .Site.BaseURL }}/images/game/icons/{{ .File.BaseFileName }}.png</image:loc>
|
||||||
|
</image:image>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if not .Lastmod.IsZero }}<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}
|
||||||
|
{{ with .Sitemap.ChangeFreq }}<changefreq>{{ . }}</changefreq>{{ end }}
|
||||||
|
{{ if ge .Sitemap.Priority 0.0 }}<priority>{{ .Sitemap.Priority }}</priority>{{ end }}
|
||||||
|
</url>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</urlset>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user