pretty *.xml

This commit is contained in:
deepzz0
2017-02-17 23:53:07 +08:00
parent 9509cd66e6
commit 4ebbc38cc0
2 changed files with 21 additions and 19 deletions
+5 -3
View File
@@ -4,8 +4,8 @@
<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}}
@@ -14,7 +14,9 @@
<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>
<![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>
</item> </item>
{{end}} {{end}}
</channel> </channel>