Private: Google Sitemap Code for Movable Type
Tweet
How to add Google Sitemap XML to MT ….
Add this to “Manage” >> “Templates” >> “New Template”:
name the file sitemap.xml and have it rebuild on every posting, then
submit to https://www.google.com/webmasters/sitemaps/showaddsitemap?hl=en_US
<?xml version=”1.0″ encoding=”UTF-8″?>
<urlset xmlns=”http://www.google.com/schemas/sitemap/0.84″>
<url>
<loc><$MTBlogURL encode_xml=”1″$></loc>
<priority>0.5</priority>
</url>
<MTEntries lastn=”9999″>
<url>
<loc><$MTEntryPermalink encode_xml=”1″$></loc>
<lastmod><$MTEntryModifiedDate utc=”1″ format=”%Y-%m-%dT%H:%M:%SZ”$></lastmod>
</url>
</MTEntries>
</urlset>
This entry was posted on Saturday, June 4th, 2005 at 9:57 am and is filed under Thoughts. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.