mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
pretty *.xml
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<cross-domain-policy>
|
<cross-domain-policy>
|
||||||
<allow-access-from domain="*.{{.Domain}}" />
|
<allow-access-from domain="*.{{.Domain}}" />
|
||||||
</cross-domain-policy>
|
</cross-domain-policy>
|
||||||
|
|||||||
+20
-18
@@ -1,21 +1,23 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
<channel>
|
<channel>
|
||||||
<title>{{.Title}}</title>
|
<title>{{.Title}}</title>
|
||||||
<link>https://{{.Domain}}</link>
|
<link>https://{{.Domain}}</link>
|
||||||
<description>{{.SubTitle}}</description>
|
<description>{{.SubTitle}}</description>
|
||||||
<atom:link href="https://{{.Domain}}/rss.html" rel="self"/>
|
<atom:link href="https://{{.Domain}}/rss.html" rel="self" />
|
||||||
<atom:link href="{{.FeedrURL}}" rel="hub"/>
|
<atom:link href="{{.FeedrURL}}" rel="hub" />
|
||||||
<language>zh-CN</language>
|
<language>zh-CN</language>
|
||||||
<lastBuildDate>{{.BuildDate}}</lastBuildDate>
|
<lastBuildDate>{{.BuildDate}}</lastBuildDate>
|
||||||
{{range .Artcs}}
|
{{range .Artcs}}
|
||||||
<item>
|
<item>
|
||||||
<title>{{.Title}}</title>
|
<title>{{.Title}}</title>
|
||||||
<link>https://{{$.Domain}}/post/{{.Slug}}.html</link>
|
<link>https://{{$.Domain}}/post/{{.Slug}}.html</link>
|
||||||
<comments>https://{{$.Domain}}/post/{{.Slug}}.html#comments</comments>
|
<comments>https://{{$.Domain}}/post/{{.Slug}}.html#comments</comments>
|
||||||
<guid>https://{{$.Domain}}/post/{{.Slug}}.html</guid>
|
<guid>https://{{$.Domain}}/post/{{.Slug}}.html</guid>
|
||||||
<description><![CDATA[<blockquote>{{.Content}}<p>本文链接:<a href="https://{{$.Domain}}/post/{{.Slug}}.html">https://{{$.Domain}}/post/{{.Slug}}.html</a>,<a href="https://{{$.Domain}}/post/{{.Slug}}.html#comments">参与评论 »</a></p>]]></description>
|
<description>
|
||||||
</item>
|
<![CDATA[<blockquote>{{.Content}}<p>本文链接:<a href="https://{{$.Domain}}/post/{{.Slug}}.html">https://{{$.Domain}}/post/{{.Slug}}.html</a>,<a href="https://{{$.Domain}}/post/{{.Slug}}.html#comments">参与评论 »</a></p>]]>
|
||||||
{{end}}
|
</description>
|
||||||
</channel>
|
</item>
|
||||||
|
{{end}}
|
||||||
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
|
|||||||
Reference in New Issue
Block a user