Google Sitemaps & Movable Type

|

Nial Kennedy has a nice post on setting up google site maps for your blog. I extended his example by including more than just the blogs. I added my own static pages to the XML feed. I also use the MT markup to include my MT pages (as opposed to entries). Here it is. If the code wrap is ugly on a smaller screen, then click the permalink.

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://google.com/schemas/sitemap/0.84">

<url>
<loc><$MTBlogURL encode_xml="1"$></loc>
<priority>1.0</priority>
</url>


<url>
<loc>http://jimweller.com/jim-weller/jim/dbsgmlqs/</loc>
<lastmod><$MTDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></lastmod>
</url>

<url>
<loc>http://jimweller.com/jim-weller/jim/java_proc_sched/</loc>
<lastmod><$MTDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></lastmod>
</url>

<url>
<loc>http://jimweller.com/jim-weller/jim/palmdevqs/</loc>
<lastmod><$MTDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></lastmod>
</url>
<url>
<loc>http://jimweller.com/jim-weller/jim/titrax/</loc>
<lastmod><$MTDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></lastmod>
</url>
<url>
<loc>http://jimweller.com/jim-weller/jim/lfw/</loc>
<lastmod><$MTDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></lastmod>
</url>
<url>
<loc>http://jimweller.com/jim-weller/jim/wedding/</loc>
<lastmod><$MTDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></lastmod>
</url>
<url>
<loc>http://jimweller.com/jim-weller/jim/vc98asmqs/</loc>
<lastmod><$MTDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></lastmod>
</url>
<url>
<loc>http://jimweller.com/jim-weller/jim/dbxmlqs/</loc>
<lastmod><$MTDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></lastmod>
</url>


<MTpages lastn="9999">
	<url>
	<loc><$MTPagePermalink encode_xml="1"$></loc>
	<lastmod><$MTPageModifiedDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></lastmod>
	</url>
</MTpages>


<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>