首页 > 奇技淫巧 > movable type 5 生成google sitemap

movable type 5 生成google sitemap

今天才发现,前两天在向google提交黑色自由的sitemap时直接提交了movable type的rss源地址,导致黑色自由一直都没有被收录。

movable type较wordpress,后者直接使用插件就可以生成google sitemap,前着我找了半天也没找到什么插件,最后在movable type的网站上找到一篇tips,google sitemap and template caching tips,里面介绍了movable type生成google sitemap的方法:
1.开启movable type的缓存;
2.创建template module,名字任意,内容为template provided by the community提供,设置template options为24小时更新一次;
3.创建index template,内容为:<mt:include module=”Google Sitemap Include”>,这里的google sitemap include为你第二步创建的template module的名字,输出文件名字任意,这个输出文件就是你的sitemap,比如sitemap.xml。重新建一遍网站就完成了。现在就可以重新提交movable type生成的google sitemap了。
  1. 2010年5月28日22:17 | #1

    坐上板凳看沙发

    [回复]

  2. 2010年5月27日23:41 | #2

    每日飘一飘,生活更健康。

    [回复]

  1. 本文目前尚无任何 trackbacks 和 pingbacks.

注意: 评论者允许使用'@user空格'的方式将自己的评论通知另外评论者。例如, ABC是本文的评论者之一,则使用'@ABC '(不包括单引号)将会自动将您的评论发送给ABC。使用'@all ',将会将评论发送给之前所有其它评论者。请务必注意user必须和评论者名相匹配(大小写一致)。

Notify me of followup comments via e-mail. You can also subscribe without commenting.