movable默认的feed输出是用atom,而校内只认rss,所以我们需要先生成rss.xml,这样校内才能同步地导入。在movable上,你需要先在索引模板中新增一个RSS Feed,内容如下:
<$mt:HTTPContentType type="application/rss+xml"$><?xml version="1.0" encoding="<$mt:PublishCharset$>"?>
<rss version="2.0">
<channel>
<title><$mt:BlogName remove_html="1" encode_xml="1"$></title>
<link><$mt:BlogURL$></link>
<description><$mt:BlogDescription remove_html="1" encode_xml="1"$></description>
<language><$mt:BlogLanguage ietf="1"$></language>
<copyright>Copyright <$mt:Date format="%Y"$></copyright>
<lastBuildDate><mt:Entries lastn="1"><$mt:EntryDate format_name="rfc822"$></mt:Entries></lastBuildDate>
<generator>http://www.sixapart.com/movabletype/</generator>
<docs>http://www.rssboard.org/rss-specification</docs>
<mt:Entries lastn="15">
<item>
<title><$mt:EntryTitle remove_html="1" encode_xml="1"$></title>
<description><$mt:EntryBody encode_xml="1"$></description>
<link><$mt:EntryPermalink encode_xml="1"$></link>
<guid><$mt:EntryPermalink encode_xml="1"$></guid>
<mt:EntryCategories>
<category domain="http://www.sixapart.com/ns/types#category"><$mt:CategoryLabel remove_html="1" encode_xml="1"$></category>
</mt:EntryCategories>
<mt:EntryTags>
<category domain="http://www.sixapart.com/ns/types#tag"><$mt:TagName remove_html="1" encode_xml="1"$></category>
</mt:EntryTags>
<pubDate><$mt:EntryDate format_name="rfc822"$></pubDate>
</item>
</mt:Entries>
</channel>
</rss>
模板的参数中有一个输出文件,填上rss.xml,好了之后保存并发布。
然后在索引模板中的Index页面中找到name="html_head"的那个标签,在rsd条目下加上一条
<link rel="alternate" type="application/atom+xml" title="Atom" href="<$mt:Link template="RSS Feed"$>" />
这条是照猫画虎,起什么作用偶就不知道了。
我自己是有在重建全站后再到校内的日志页面中的站外博客的导入,在输入框中填入xxx.xxx.xxx/rss.xml 再选择确定。不过我觉得可能不需要重建全站这步 :) 现在校内就能找到你blog上的rss.xml了,它就会把近期的日志列出来让你选择导入了 :D
发表评论