This commit is contained in:
deepzz0
2016-10-02 19:12:47 +08:00
parent 34cc239e83
commit 76134cee10
19 changed files with 21 additions and 3420 deletions

View File

@@ -2,19 +2,19 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{.Title}}</title>
<link>{{if .EnableHttps}}https://{{else}}http://{{end}}{{.Domain}}</link>
<atom:link href="{{if .EnableHttps}}https://{{else}}http://{{end}}{{.Domain}}/rss.html" rel="self"/>
<link>https://{{.Domain}}</link>
<atom:link href="https://{{.Domain}}/rss.html" rel="self"/>
<description>{{.SubTitle}}</description>
<language>zh-CN</language>
<lastBuildDate>{{.BuildDate}}</lastBuildDate>
{{range .Artcs}}
<item>
<title>{{.Title}}</title>
<link>{{if $.EnableHttps}}https://{{else}}http://{{end}}{{$.Domain}}/post/{{.Slug}}.html</link>
<comments>{{if $.EnableHttps}}https://{{else}}http://{{end}}{{$.Domain}}/post/{{.Slug}}.html#comments</comments>
<guid>{{if $.EnableHttps}}https://{{else}}http://{{end}}{{$.Domain}}/post/{{.Slug}}.html</guid>
<link>https://{{$.Domain}}/post/{{.Slug}}.html</link>
<comments>https://{{$.Domain}}/post/{{.Slug}}.html#comments</comments>
<guid>https://{{$.Domain}}/post/{{.Slug}}.html</guid>
<description><![CDATA[<blockquote>{{.Content}}]]></description>
</item>
{{end}}
</channel>
</rss>
</rss>

View File

@@ -2,9 +2,9 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{{range .Artcs}}
<url>
<loc>{{if $.EnableHttps}}https{{else}}http{{end}}://{{$.Domain}}/post/{{.Slug}}.html</loc>
<loc>https://{{$.Domain}}/post/{{.Slug}}.html</loc>
<lastmod>{{dateformat .CreateTime "2006-01-02"}}</lastmod>
<priority>0.6</priority>
</url>
{{end}}
</urlset>
</urlset>