MTでサイトマップを作る
Movable Typeでブログのサイトマップを作る
via
汎用サイトマップ Movable Type版 sitemaps.org準拠 in SEOブログ from SEO塾
このページのソースを参考にした。更新日をもう少しきっちり出したかったので色々修正
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <!-- ブログ --> <MTEntries lastn="1"> <url> <loc><$MTBlogURL encode_xml="1"$>index.html</loc> <lastmod><$MTEntryModifiedDate utc="1" format="%Y-%m-%d"$></lastmod> <changefreq>daily</changefreq> <priority>0.5</priority> </url> </MTEntries> <!-- 最新のエントリ --> <MTEntries lastn="1"> <url> <loc><$MTEntryPermalink encode_xml="1"$></loc> <lastmod><$MTEntryModifiedDate utc="1" format="%Y-%m-%d"$></lastmod> <changefreq>daily</changefreq> <priority>0.5</priority> </url> </MTEntries> <!-- アーカイブトップ --> <MTArchiveList archive_type="Monthly" lastn="1"> <url> <loc><$MTBlogURL encode_xml="1"$>archives.html</loc> <lastmod><$MTArchiveDate format="%Y-%m-%d"$></lastmod> <priority>0.5</priority> </url> </MTArchiveList> <!-- 月別アーカイブリスト --> <MTArchiveList archive_type="Monthly"> <url> <loc><$MTArchiveLink encode_xml="1"$>index.html</loc> <lastmod><$MTArchiveDate format="%Y-%m-%d"$></lastmod> <priority>0.5</priority> </url> </MTArchiveList> <!-- 各カテゴリの最新エントリ --> <MTCategories> <MTParentCategories> <MTEntries lastn="1"> <url> <loc><$MTCategoryArchiveLink encode_xml="1"$>index.html</loc> <lastmod><$MTEntryModifiedDate utc="1" format="%Y-%m-%d"$></lastmod> <priority>0.5</priority> </url> </MTEntries> </MTParentCategories> </MTCategories> </urlset>
吐き出されたファイル
このソースで吐き出したsaitemap.xmlのサンプルはこちら。
[対象を保存]すると見やすいかも