Google Sitemap template for Movable Type

I got annoyed that all the current Google happy site maps for Movable Type out there are not complete, and do not span you're entire site's pages… therefore I made another one. Feel free to take it and play, so long as the top notice is kept.

<?xml version='1.0' encoding='UTF-8'?>
    <urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">

<!– Google XML Sitemap Template for Movable Type by Andy Callaghan –> 

                <url>
                          <loc><$MTBlogURL$></loc>
                          <priority>1.0</priority>
                                <MTEntries lastn="1">
                          <lastmod><$MTEntryModifiedDate format="%Y-%m-%d"$></lastmod>
                                </MTEntries>
                          <changefreq>daily</changefreq>
                 </url>

                 <url>
                        <loc><$MTBlogURL$>archives.html</loc>
                        <priority>0.9</priority>
                               <MTEntries lastn="1">
                        <lastmod><$MTEntryModifiedDate format="%Y-%m-%d"$></lastmod>
                               </MTEntries>
                        <changefreq>daily</changefreq>
                </url>

                <MTEntries lastn="5">
        <url>
            <loc><$MTEntryPermalink$></loc>
                  <lastmod><$MTEntryModifiedDate format="%Y-%m-%d"$></lastmod>
                        <changefreq>weekly</changefreq>
                        <priority>0.8</priority>
        </url>
                </MTEntries>

                <MTEntries lastn="5" offset="5">
        <url>
            <loc><$MTEntryPermalink$></loc>
                  <lastmod><$MTEntryModifiedDate format="%Y-%m-%d"$></lastmod>
                        <changefreq>weekly</changefreq>
                        <priority>0.7</priority>
        </url>
                </MTEntries>

                <MTEntries lastn="10" offset="10">
        <url>
            <loc><$MTEntryPermalink$></loc>
                  <lastmod><$MTEntryModifiedDate format="%Y-%m-%d"$></lastmod>
                        <changefreq>weekly</changefreq>
                        <priority>0.6</priority>
        </url>
                </MTEntries>

                <MTEntries lastn="1000" offset="20">
        <url>
            <loc><$MTEntryPermalink$></loc>
                  <lastmod><$MTEntryModifiedDate format="%Y-%m-%d"$></lastmod>
                        <changefreq>weekly</changefreq>
                        <priority>0.5</priority>
        </url>
                </MTEntries>

              <MTTopLevelCategories>
                <url>
                       <loc><$MTCategoryArchiveLink$></loc>
                       <changefreq>weekly</changefreq>
                        <priority>0.8</priority>
                       <MTEntries lastn="1" category="<$MTCategoryLabel$>
                        <lastmod><$MTEntryModifiedDate format="%Y-%m-%d"$></lastmod>
                       </MTEntries>
                </url>
            </MTTopLevelCategories>

             <MTArchiveList archive_type="Monthly">

             <url>
                       <loc><$MTArchiveLink$></loc>
                       <changefreq>monthly</changefreq>
                       <priority>0.6</priority>
             </url>
            </MTArchiveList>

    </urlset>

This entry was posted in Google, Tips and tricks. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>