|
|
| Line 24: |
Line 24: |
|
| |
|
|
| |
|
| == 迴響的RSS Feed ==
| |
|
| |
|
| === Recent comments in RSS 0.91 ===
| |
| : 參考:phil ringnalda dot com: [http://philringnalda.com/blog/2002/06/comment_rss_feed.php Comment RSS feed] 2002-06-06
| |
| : 新增以下模版,並輸出檔案至comments.xml
| |
|
| |
| <?xml version="1.0"?>
| |
| <rss version="0.91">
| |
| <channel>
| |
| <title><$MTBlogName$> : Comments</title>
| |
| <link><$MTBlogURL$></link>
| |
| <description><$MTBlogDescription$></description>
| |
| <language>zh-tw</language>
| |
| <MTComments lastn="20">
| |
| <item>
| |
| <title><$MTCommentAuthor encode_html="1"$>
| |
| <$MTCommentEmail encode_html="1"$></title>
| |
| <description><$MTCommentBody encode_html="1"$></description>
| |
| <link><$MTCommentAuthorLink encode_html="1"$></link>
| |
| </item>
| |
| </MTComments>
| |
| </channel>
| |
| </rss>
| |
|
| |
| 注意,若是繁體字請用<language>zh-tw</language>,如果是英語則用
| |
|
| |
| <language>en-us</language>
| |
|
| |
| 主模版在</title>與<head>之間,加上
| |
|
| |
| <link rel="alternate" type="application/rss+xml" title="Recent comments in RSS" href="<$MTBlogURL$>comments.xml"/>
| |
|
| |
|
| |
| === Recent comments in RSS 1.0 ===
| |
| : 參考:終極邊疆 Final Frontier BLOG: [http://blog.serv.idv.tw/archives/000206.php 在MT中把迴響作成RSS] 2004-05-24
| |
| : 新增以下模版,並輸出檔案至comments.rdf
| |
|
| |
| <pre>
| |
| <?xml version="1.0" encoding="<$MTPublishCharset$>"?>
| |
|
| |
| <rdf:RDF
| |
| xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
| |
| xmlns:dc="http://purl.org/dc/elements/1.1/"
| |
| xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
| |
| xmlns:admin="http://webns.net/mvcb/"
| |
| xmlns:cc="http://web.resource.org/cc/"
| |
| xmlns="http://purl.org/rss/1.0/">
| |
|
| |
| <channel rdf:about="<$MTBlogURL$>">
| |
| <title><$MTBlogName encode_xml="1"$></title>
| |
| <link><$MTBlogURL$></link>
| |
| <description><$MTBlogDescription encode_xml="1"$></description>
| |
| <dc:language>zh-tw</dc:language>
| |
| <dc:creator></dc:creator>
| |
| <dc:date><MTEntries lastn="1"><$MTEntryDate format="%Y-%m-%dT%H:%M:%S" language="zh-tw"$><$MTBlogTimezone$></MTEntries></dc:date>
| |
| <admin:generatorAgent rdf:resource="http://www.movabletype.org/?v=<$MTVersion$>" />
| |
| <MTBlogIfCCLicense>
| |
| <cc:license rdf:resource="<$MTBlogCCLicenseURL$>" />
| |
| </MTBlogIfCCLicense>
| |
|
| |
| <items>
| |
| <rdf:Seq><MTComments lastn="15" sort_order="descend">
| |
| <rdf:li rdf:resource="<$MTCGIPath$>mt-comments.cgi?entry_id=<$MTCommentEntryID$>#comment<$MTCommentID pad="1"$>" />
| |
| </MTComments></rdf:Seq>
| |
| </items>
| |
|
| |
| </channel>
| |
|
| |
| <MTComments lastn="15" sort_order="descend">
| |
| <item rdf:about="<$MTCGIPath$>mt-comments.cgi?entry_id=<$MTCommentEntryID$>#comment<$MTCommentID pad="1"$>">
| |
| <MTCommentEntry><title>Re: <$MTEntryTitle encode_xml="1"$></title>
| |
| <link><$MTCGIPath$>mt-comments.cgi?entry_id=<$MTCommentEntryID$>#comment<$MTCommentID pad="1"$></link>
| |
| <description><$MTCommentBody encode_xml="1"$></description>
| |
| <dc:subject><$MTEntryCategory encode_xml="1"$></dc:subject></MTCommentEntry>
| |
| <dc:creator><$MTCommentAuthor encode_xml="1"$></dc:creator>
| |
| <dc:date><$MTCommentDate format="%Y-%m-%dT%H:%M:%S" language="zh-tw"$><$MTBlogTimezone$></dc:date>
| |
| </item>
| |
|
| |
| </MTComments>
| |
|
| |
| </rdf:RDF>
| |
| </pre>
| |
|
| |
| 主模版在</title>與<head>之間,加上
| |
|
| |
| <link rel="alternate" type="application/rss+xml" title="Recent comments Feed in RSS 1.0" href="<$MTBlogURL$>comments.rdf"/>
| |
|
| |
|
| === other === | | === other === |