MT Sitemap.xmlテンプレート

WEB制作 コメントは受け付けていません。

サイトマップを自動で生成するテンプレートを追加しました。

Web備忘録さんのページをコピペしただけです。

<?xml version="1.0" encoding="UTF-8"?>

  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
  <loc><$MTBlogURL encode_xml="1"$></loc>
  <lastmod><$MTDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>

  <changefreq>daily</changefreq>
  </url>

  <MTIfArchiveTypeEnabled archive_type="Individual">
  <MTEntries lastn="9999">
  <url>

  <loc><$MTEntryPermalink encode_xml="1"$></loc>
  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
  <priority>1.0</priority>

  </url>
  </MTEntries>
  </MTIfArchiveTypeEnabled>

  <MTIfArchiveTypeEnabled archive_type="Monthly">
  <MTArchiveList archive_type="Monthly">
  <url>

  <loc><$MTArchiveLink encode_xml="1"$></loc>
  <MTEntries lastn="1" sort_by="modified_on">
  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>

  </MTEntries>
  </url>
  </MTArchiveList>
  </MTIfArchiveTypeEnabled>

  <MTIfArchiveTypeEnabled archive_type="Weekly">
  <MTArchiveList archive_type="Weekly">

  <url>
  <loc><$MTArchiveLink encode_xml="1"$></loc>
  <MTEntries lastn="1" sort_by="modified_on">

  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
  </MTEntries>
  </url>
  </MTArchiveList>

  </MTIfArchiveTypeEnabled>

  <MTIfArchiveTypeEnabled archive_type="Daily">
  <MTArchiveList archive_type="Daily">
  <url>
  <loc><$MTArchiveLink encode_xml="1"$></loc>

  <MTEntries lastn="1" sort_by="modified_on">
  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
  </MTEntries>

  </url>
  </MTArchiveList>
  </MTIfArchiveTypeEnabled>

  <MTIfArchiveTypeEnabled archive_type="Author">
  <MTArchiveList archive_type="Author">
  <url>

  <loc><$MTArchiveLink encode_xml="1"$></loc>
  <MTEntries lastn="1" sort_by="modified_on">
  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>

  </MTEntries>
  </url>
  </MTArchiveList>
  </MTIfArchiveTypeEnabled>

  <MTIfArchiveTypeEnabled archive_type="Author-Daily">
  <MTArchiveList archive_type="Author-Daily">

  <url>
  <loc><$MTArchiveLink encode_xml="1"$></loc>
  <MTEntries lastn="1" sort_by="modified_on">

  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
  </MTEntries>
  </url>
  </MTArchiveList>

  </MTIfArchiveTypeEnabled>

  <MTIfArchiveTypeEnabled archive_type="Author-Weekly">
  <MTArchiveList archive_type="Author-Weekly">
  <url>
  <loc><$MTArchiveLink encode_xml="1"$></loc>

  <MTEntries lastn="1" sort_by="modified_on">
  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
  </MTEntries>

  </url>
  </MTArchiveList>
  </MTIfArchiveTypeEnabled>

  <MTIfArchiveTypeEnabled archive_type="Author-Monthly">
  <MTArchiveList archive_type="Author-Monthly">
  <url>

  <loc><$MTArchiveLink encode_xml="1"$></loc>
  <MTEntries lastn="1" sort_by="modified_on">
  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>

  </MTEntries>
  </url>
  </MTArchiveList>
  </MTIfArchiveTypeEnabled>

  <MTIfArchiveTypeEnabled archive_type="Author-Yearly">
  <MTArchiveList archive_type="Author-Yearly">

  <url>
  <loc><$MTArchiveLink encode_xml="1"$></loc>
  <MTEntries lastn="1" sort_by="modified_on">

  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
  </MTEntries>
  </url>
  </MTArchiveList>

  </MTIfArchiveTypeEnabled>

  <MTIfArchiveTypeEnabled archive_type="Category">
  <MTArchiveList archive_type="Category">
  <url>
  <loc><$MTArchiveLink encode_xml="1"$></loc>

  <MTEntries lastn="1" sort_by="modified_on">
  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
  </MTEntries>

  </url>
  </MTArchiveList>
  </MTIfArchiveTypeEnabled>

  <MTIfArchiveTypeEnabled archive_type="Category-Daily">
  <MTArchiveList archive_type="Category-Daily">
  <url>

  <loc><$MTArchiveLink encode_xml="1"$></loc>
  <MTEntries lastn="1" sort_by="modified_on">
  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>

  </MTEntries>
  </url>
  </MTArchiveList>
  </MTIfArchiveTypeEnabled>

  <MTIfArchiveTypeEnabled archive_type="Category-Weekly">
  <MTArchiveList archive_type="Category-Weekly">

  <url>
  <loc><$MTArchiveLink encode_xml="1"$></loc>
  <MTEntries lastn="1" sort_by="modified_on">

  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
  </MTEntries>
  </url>
  </MTArchiveList>

  </MTIfArchiveTypeEnabled>

  <MTIfArchiveTypeEnabled archive_type="Category-Monthly">
  <MTArchiveList archive_type="Category-Monthly">
  <url>
  <loc><$MTArchiveLink encode_xml="1"$></loc>

  <MTEntries lastn="1" sort_by="modified_on">
  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
  </MTEntries>

  </url>
  </MTArchiveList>
  </MTIfArchiveTypeEnabled>

  <MTIfArchiveTypeEnabled archive_type="Category-Yearly">
  <MTArchiveList archive_type="Category-Yearly">
  <url>

  <loc><$MTArchiveLink encode_xml="1"$></loc>
  <MTEntries lastn="1" sort_by="modified_on">
  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>

  </MTEntries>
  </url>
  </MTArchiveList>
  </MTIfArchiveTypeEnabled>

  <MTIfArchiveTypeEnabled archive_type="Page">
  <MTArchiveList archive_type="Page">

  <url>
  <loc><$MTArchiveLink encode_xml="1"$></loc>
  <MTEntries lastn="1" sort_by="modified_on">

  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
  </MTEntries>
  </url>
  </MTArchiveList>

  </MTIfArchiveTypeEnabled>

  <url>
  <loc><$MTLink template="アーカイブインデックス" encode_xml="1"$></loc>
  <lastmod><$MTDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>

  </url>
</urlset>
Tagged with:

今までWrodpressをつかっていましたが、Movabletypeを勉強しはじめました。

フッターの著作権表示を行うにあたり、動的に「西暦」を表示させる方法を調べていたら、ちょうど良いのが見つかりました!

Copyright © 2009 datarecycle, all rights reserved.

こちらのページです。COPYRIGHTの西暦表記を自動で行う(MT4~)

<MTSetVarBlock name="year"><MTArchiveList archive_type="Monthly"><MTArchiveListHeader><$MTArchiveDate format="%Y" language="en"$></MTArchiveListHeader></MTArchiveList></MTSetVarBlock>
<MTSetVarBlock name="year2"><MTArchiveList archive_type="Monthly"><MTArchiveListFooter><$MTArchiveDate format="%Y" language="en"$></MTArchiveListFooter></MTArchiveList></MTSetVarBlock>
Copyright &copy;<MTGetVar name="year2"><MTUnless name="year2" eq="year">-<MTGetVar  name="year"></MTUnless> DataRecyle All rights reserved.
Tagged with:
preload preload preload