●MovableTypeの覚え書き
・画像のポップアップウィンドウのテンプレート
アーカイブの画像ポップアップテンプレ
そのままでも十分だが右上のクローズボックスをクリックしなくても
画像クリックでウィンドウ閉じます。
<html>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<a href="" onclick="window.close()"><img src="<$MTImageURL$>" width="<$MTImageWidth$>" height="<$MTImageHeight$>" border="0" /></a>
</body>
</html>
・メインページ::カテゴリ内のエントリ数表示
<div id="categories">
<h2>カテゴリー</h2>
<MTSubCategories>
<MTSubCatIsFirst><ul></MTSubCatIsFirst>
<MTIfNonZero tag="MTCategoryCount">
<li><a href="<$MTCategoryArchiveLink$>" title="<$MTCategoryDescription$>"><MTCategoryLabel></a> (<MTCategoryCount>)
<MTElse>
<li><MTCategoryLabel>
</MTElse>
</MTIfNonZero>
<MTSubCatsRecurse max_depth="3">
</li>
<MTSubCatIsLast></ul></MTSubCatIsLast>
</MTSubCategories>
</div>
・メインページ::最近のコメント表示
<h2>最近のコメント</h2> <ul> <MTEntries recently_commented_on="10"> <li><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a><br /> <MTComments lastn="5"> └ <$MTCommentAuthor$> <a href="<$MTEntryPermalink$>#c<$MTCommentID$>">at <$MTCommentDate format="%Y.%m.%d"$></a><br /> </MTComments></li> </MTEntries> </ul>
まぁ一般的なブログで備えている機能なので、対応させておいた方が良いのだろう。