Google Sitemap Template for MovableType

From LemonWiki共筆
Jump to navigation Jump to search

Google Sitemaps - Improve the visibility of your URLs on Google


Note: Another easy way is offer the URL of Syndication feed(RSS). (but only updated part not full index of entire pages)


Steps for create the MovableType Template[edit]

  • Create New Index Template called SiteMap (You may change the name as your wish.)
  • Output file: sitemap.xml
  • Template body as follows:
<?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">
	<url>
		<loc><$MTBlogURL encode_xml="1"$></loc>
		<changefreq>always</changefreq>
		<priority>1.0</priority>
	</url>
<MTArchiveList>
<MTEntries>
	<url>
		<loc><$MTEntryPermalink encode_xml="1"$></loc>
		<lastmod><$MTEntryDate format="%Y-%m-%d"$></lastmod>
		<changefreq>never</changefreq>
		<priority>0.8</priority>
	</url>
</MTEntries>
</MTArchiveList>
</urlset>
  • You need to change the changefreq by yourself.
    • always
    • hourly
    • daily
    • weekly
    • monthly
    • yearly
    • never