10-5 「最近のコメント」をフィードで配信する
197ページ
<mt:HTTPContentType type="application/atom+xml" /><?xml version="1.0" encoding="<mt:PublishCharset />"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title><mt:BlogName remove_html="1" encode_xml="1" />へのコメント</title>
<link rel="self" type="application/atom+xml" href="<mt:BlogURL encode_xml="1" />comments.xml" />
<link rel="alternate" type="text/html" href="<mt:BlogURL encode_xml="1" />" />
<id>tag:<mt:BlogHost exclude_port="1" encode_xml="1" />,<mt:TemplateCreatedOn format="%Y-%m-%d" />:<mt:BlogRelativeURL encode_xml="1" />/<mt:BlogID />/comment</id>
<updated><mt:Comments lastn="1"><mt:CommentDate utc="1" format="%Y-%m-%dT%H:%M:%SZ" /></mt:Comments></updated>
<generator uri="http://www.sixapart.com/movabletype/"><mt:ProductName version="1" /></generator>
<mt:Comments lastn="15" sort_order="descend">
<entry>
<title>「<mt:CommentEntry><mt:EntryTitle remove_html="1" encode_xml="1" /></mt:CommentEntry>」へのコメント</title>
<link rel="alternate" type="text/html" href="<mt:CommentEntry><mt:EntryPermalink encode_xml="1" /></mt:CommentEntry>#comment-<mt:CommentID />" />
<id>tag:<mt:BlogHost exclude_port="1" encode_xml="1" />,<mt:TemplateCreatedOn format="%Y-%m-%d" />:<mt:CommentEntry><mt:EntryPermalink />#comment-<mt:CommentID /></mt:CommentEntry></id>
<published><mt:CommentDate utc="1" format="%Y-%m-%dT%H:%M:%SZ" /></published>
<author>
<name><mt:CommentAuthor encode_xml="1" /></name>
<mt:if tag="CommentURL">
<uri><mt:CommentURL encode_xml="1" /></uri>
</mt:if>
</author>
<content type="html" xml:lang="<mt:BlogLanguage ietf="1" />" xml:base="<mt:BlogURL encode_xml="1" />">
<mt:CommentBody encode_xml="1" />
</content>
</entry>
</mt:Comments>
</feed>
199ページ
「HTMLヘッダー」テンプレートモジュール
<link rel="alternate" type="application/atom+xml" title="Atom Comment" href="<mt:BlogURL />
comments.xml" />
「購読」ウィジェットテンプレート
<li><img src="<mt:StaticWebPath />images/status_icons/feed.gif" alt="購読する" width="9"
height="9" /> <a href="<mt:BlogURL />comments.xml" />コメントを購読</a></li>
ウェブサイトでの利用
<mt:HTTPContentType type="application/atom+xml" /><?xml version="1.0" encoding="<mt:PublishCharset />"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title><mt:WebsiteName remove_html="1" encode_xml="1" />へのコメント</title>
<link rel="alternate" type="text/html" href="<mt:WebsiteURL encode_xml="1" />" />
<id>tag:<mt:WebsiteHost exclude_port="1" encode_xml="1" />,<mt:TemplateCreatedOn format="%Y-%m-%d" />:<mt:WebsiteRelativeURL encode_xml="1" />/<mt:WebsiteID />/comment</id>
<updated><mt:Comments lastn="1"><mt:CommentDate utc="1" format="%Y-%m-%dT%H:%M:%SZ" /></mt:Comments></updated>
<generator uri="http://www.sixapart.com/movabletype/"><mt:ProductName version="1" /></generator>
<mt:Comments lastn="15" sort_order="descend">
<entry>
<title>「<mt:CommentEntry><mt:EntryTitle remove_html="1" encode_xml="1" /></mt:CommentEntry>」へのコメント</title>
<link rel="alternate" type="text/html" href="<mt:CommentEntry><mt:EntryPermalink encode_xml="1" /></mt:CommentEntry>#comment-<mt:CommentID />" />
<id>tag:<mt:WebsiteHost exclude_port="1" encode_xml="1" />,<mt:TemplateCreatedOn format="%Y-%m-%d" />:<mt:CommentEntry><mt:EntryPermalink />#comment-<mt:CommentID /></mt:CommentEntry></id>
<published><mt:CommentDate utc="1" format="%Y-%m-%dT%H:%M:%SZ" /></published>
<author>
<name><mt:CommentAuthor encode_xml="1" /></name>
<mt:if tag="CommentURL">
<uri><mt:CommentURL encode_xml="1" /></uri>
</mt:if>
</author>
<content type="html" xml:lang="<mt:ifWebsite><mt:WebsiteLanguage ietf="1" /><mt:else><mt:BlogLanguage ietf="1" /></mt:ifWebsite>" xml:base="<mt:WebsiteURL encode_xml="1" />">
<mt:CommentBody encode_xml="1" />
</content>
</entry>
</mt:Comments>
</feed>