#author("2023-12-23T23:34:59+09:00","default:nemusg.pad","nemusg.pad") * MTのRSS [#wd6c4fc1] ** RSSとかAtomとかの違い [#z13ca0b2] - [[RSS、atomの仕様をまとめる:https://qiita.com/you8/items/e903fd463cf770688e1e]] - [[Feed,RSS,Atom:フィードとは (初心者向け解説):https://www.movabletype.jp/documentation/designer/template-types.html]] - [[RSS1.0,RSS2.0,ATOM のフォーマット・仕様・構造:http://amarron.hatenablog.com/entry/2014/03/14/200556]] - https://www.futomi.com/lecture/japanese/rfc4287.html - https://support.google.com/news/producer/answer/6170026?hl=ja 古い順から、RSS1.0(rdf)、RSS2.0(xml)、Atom(xml)になるので今はもうatomで作っておけばいいはず。MTのテンプレートにもatomしかないのはそのため。 - feed : RSSやAtomの総称 - RSS/Atom : 文書規格 - XML : 言語 - RSD : 外部サービス向けの情報 ** 参考 [#mde02c0e] サムネイルに関してはinoreader視点。 - http://pazusoku.blog.fc2.com/?xml Atom.全文表示はしていない。サムネイルは記事のものを引いてきたりこなかったり。 - https://pubg.jp/feed rss2.0.全文表示。画像があるときだけサムネイル表示で理想的。 - http://blog.livedoor.jp/dqnplus/index.rdf 全文表示はなし - http://feeds.feedburner.com/bashalog - http://kachibito.net/feed http://nemusg.com/atom.xml サムネ引いてる http://nemusg.com/rss.xml 引いてない ** チェックツール [#e0b846cc] - http://www.feedvalidator.org/ - https://validator.w3.org/feed/ - https://validator.w3.org/unicorn/ - https://cmspf.yahoo.co.jp/rss/check ** MT用テンプレート [#g6db90c3] OGPをサムネに使うなら下記を本文(content:encoded)内に書く #code_x{{ <mt:if tag="EntryDataOgimage"><mt:EntryDataOgimage><mt:else>http://nemusg.com/images/common/ogimg_nemusg.png</mt:if> }} *** 自分がしばらく使っていたrss.xml [#kf66eed4] #code_x{{ <$MTHTTPContentType type="application/rss+xml"$><?xml version="1.0" encoding="<$MTPublishCharset$>"?> <rss version="2.0"> <channel> <title><$MTBlogName remove_html="1" encode_xml="1"$></title> <link><$MTBlogURL$></link> <description><$MTBlogDescription remove_html="1" encode_xml="1"$></description> <language><$MTBlogLanguage ietf="1"$></language> <copyright>Copyright <$MTDate format="%Y"$></copyright> <lastBuildDate><MTEntries lastn="1"><$MTEntryDate format_name="rfc822"$></MTEntries></lastBuildDate> <generator>http://www.sixapart.com/movabletype/</generator> <docs>http://www.rssboard.org/rss-specification</docs> <MTEntries lastn="15"> <item> <title><$MTEntryTitle remove_html="1" encode_xml="1"$></title> <description><$MTEntryBody encode_xml="1" convert_breaks="1"$></description> <link><$MTEntryPermalink encode_xml="1"$></link> <guid><$MTEntryPermalink encode_xml="1"$></guid> <MTEntryCategories> <category domain="http://www.sixapart.com/ns/types#category"><$MTCategoryLabel remove_html="1" encode_xml="1"$></category> </MTEntryCategories> <MTEntryIfTagged><MTEntryTags> <category domain="http://www.sixapart.com/ns/types#tag"><$MTTagName remove_html="1" encode_xml="1"$></category> </MTEntryTags></MTEntryIfTagged> <pubDate><$MTEntryDate format_name="rfc822"$></pubDate> </item> </MTEntries> </channel> </rss> }} *** Rainier 1.22のatom.xml [#xa7dd0e5] #code_x{{ <$MTHTTPContentType type="application/rss+xml"$><?xml version="1.0" encoding="<$MTPublishCharset$>"?> <rss version="2.0"> <channel> <title><$MTBlogName remove_html="1" encode_xml="1"$></title> <link><$MTBlogURL$></link> <description><$MTBlogDescription remove_html="1" encode_xml="1"$></description> <language><$MTBlogLanguage ietf="1"$></language> <copyright>Copyright <$MTDate format="%Y"$></copyright> <lastBuildDate><MTEntries lastn="1"><$MTEntryDate format_name="rfc822"$></MTEntries></lastBuildDate> <generator>http://www.sixapart.com/movabletype/</generator> <docs>http://www.rssboard.org/rss-specification</docs> <MTEntries lastn="15"> <item> <title><$MTEntryTitle remove_html="1" encode_xml="1"$></title> <description><$MTEntryBody encode_xml="1" convert_breaks="1"$></description> <link><$MTEntryPermalink encode_xml="1"$></link> <guid><$MTEntryPermalink encode_xml="1"$></guid> <MTEntryCategories> <category domain="http://www.sixapart.com/ns/types#category"><$MTCategoryLabel remove_html="1" encode_xml="1"$></category> </MTEntryCategories> <MTEntryIfTagged><MTEntryTags> <category domain="http://www.sixapart.com/ns/types#tag"><$MTTagName remove_html="1" encode_xml="1"$></category> </MTEntryTags></MTEntryIfTagged> <pubDate><$MTEntryDate format_name="rfc822"$></pubDate> </item> </MTEntries> </channel> </rss> }} ** RSS購読ボタンを置くべきかどうか [#s4757edc] - http://www.toma-g.net/entry/2016/03/06/210354 サービスごとにボタンを置くと何個置いたらいいかわからないので、普通にxmlファイルへのリンクを貼るのがシンプルだと思う あえて置くならfeedly,inoreaderだろうか。