【MT】ページごとにmeta keywordsやdescriptionを設定

<meta http-equiv=”Content-Type” content=”text/html; charset=<$mt:PublishCharset$>” />
<mt:If name=”main_index”>
<meta name=”keyword” content=”トップページのキーワード1,キーワード2,キーワード3…” />
<meta name=”description” content=”<$MTBlogDescription$>” />
<mt:ElseIf name=”page_template”>
<meta name=”keyword” content=”ウェブページのキーワード1,キーワード2,キーワード3…” />
<meta name=”description” content=”<$MTEntryExcerpt$>” />
<mt:ElseIf name=”archive_listing”>
<meta name=”keyword” content=”カテゴリ,月別アーカイブページのキーワード1,キーワード2…” />
<meta name=”description” content=”<$mt:ArchiveTitle$>のアーカイブ” />
</mt:If>
<link rel=”stylesheet” href=”<$mt:Link template=”styles”$>” type=”text/css” />
<link rel=”start” href=”<$mt:BlogURL$>” title=”Home” />
<link rel=”alternate” type=”application/atom+xml” title=”Recent Entries” href=”<$mt:Link template=”feed_recent”$>” />
<script type=”text/javascript” src=”<$mt:Link template=”javascript”$>”></script>
<$mt:CCLicenseRDF$>



条件分けしてみて気付いたのですが、上記「name=”○○”」の○○の部分は次のようになっていました。

main_index:トップページ
entry_template:個別記事
page_template:ウェブページ
archive_listing:カテゴリページ,月別アーカイブページ

 

 

MovableTypeで、ページごとにmeta keywords(キーワード)やdescriptionを設定する方法 | PHPメモ.