#author("2023-12-23T23:34:59+09:00","default:nemusg.pad","nemusg.pad") #author("2023-12-23T23:37:39+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> <$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="alternate" type="text/html" href="<$mt:BlogURL encode_xml="1"$>" /> <link rel="self" type="application/atom+xml" href="<$mt:Link template="feed_recent"$>" /> <id>tag:<$mt:BlogHost exclude_port="1" encode_xml="1"$>,<$mt:TemplateCreatedOn format="%Y-%m-%d"$>:<$mt:BlogRelativeURL encode_xml="1"$><$mt:BlogID$></id> <updated><mt:Entries lastn="1"><$mt:EntryModifiedDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></mt:Entries></updated> <mt:If tag="BlogDescription"><subtitle><$mt:BlogDescription remove_html="1" encode_xml="1"$></subtitle></mt:If> <generator uri="http://www.sixapart.com/movabletype/"><$mt:ProductName version="1"$></generator> <mt:Entries lastn="15"> <entry> <title><$mt:EntryTitle remove_html="1" encode_xml="1"$></title> <link rel="alternate" type="text/html" href="<$mt:EntryPermalink encode_xml="1"$>" /> <id><$mt:EntryAtomID$></id> <published><$mt:EntryDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></published> <updated><$mt:EntryModifiedDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></updated> <summary><$mt:EntryExcerpt remove_html="1" encode_xml="1"$></summary> <author> <name><$mt:EntryAuthorDisplayName encode_xml="1"$></name> <mt:If tag="EntryAuthorURL"><uri><$mt:EntryAuthorURL encode_xml="1"$></uri></mt:If> </author> <mt:EntryCategories> <category term="<$mt:CategoryLabel encode_xml="1"$>" scheme="http://www.sixapart.com/ns/types#category" /> </mt:EntryCategories> <mt:EntryIfTagged><mt:EntryTags><category term="<$mt:TagName normalize="1" encode_xml="1"$>" label="<$mt:TagName encode_xml="1"$>" scheme="http://www.sixapart.com/ns/types#tag" /> </mt:EntryTags></mt:EntryIfTagged> <content type="html" xml:lang="<$mt:BlogLanguage ietf="1"$>" xml:base="<$mt:BlogURL encode_xml="1"$>"> <$mt:EntryBody encode_xml="1"$> <$mt:EntryMore encode_xml="1"$> </content> </entry> </mt:Entries> </feed> }} ** RSS購読ボタンを置くべきかどうか [#s4757edc] - http://www.toma-g.net/entry/2016/03/06/210354 サービスごとにボタンを置くと何個置いたらいいかわからないので、普通にxmlファイルへのリンクを貼るのがシンプルだと思う あえて置くならfeedly,inoreaderだろうか。