http://www.google.com/support/forum/p/blogger/thread?tid=4892e22dee25eedc&hl=ja
例。
$ diff -U5 -w -u template-6143936844695013686.xml.2011-10-03.8 template-6143936844695013686.xml.2011-10-03.9
--- template-6143936844695013686.xml.2011-10-03.8 2011-10-03 16:47:50.052500000 +0900
+++ template-6143936844695013686.xml.2011-10-03.9 2011-10-03 20:38:16.725375000 +0900
@@ -1156,10 +1156,21 @@
#main .gsc-result-info {
border-bottom-width: 0;
padding-right: 33px;
text-align: right;
}
+/*************************************************
+ * トップページテスト。
+ *************************************************/
+.if-cond-data-blog-pageType-index {
+ border-top: 1px dashed gray;
+ line-height: 1.5em;
+ margin-bottom: 2.08em;
+ margin-left: -0.8em;
+ padding-left: 0.8em;
+ padding-top: 0.5em;
+}
]]></b:skin>
@@ -1614,10 +1625,20 @@
</b:if>
</b:includable>
<b:includable id='main' var='top'>
<b:if cond='data:mobile == "false"'>
+<b:if cond='data:blog.pageType == "index"'>
+<div class='if-cond-data-blog-pageType-index'>
+ようこそ!!<br/>
+現在トップページを表示しています。<br/>
+このサイトは主に<a href='http://www.gentoo.org/main/ja/about.xml'>Gentoo Linux</a>と<a href='http://www.php.net/manual/ja/pre ace.php'>PHP</a>に関するメモを保存しているサイトです。<br/>
+サイドバーのコンテンツから記事を探してください。<br/>
+現在のページは最新の記事を表示しています。
+</div>
+</b:if>
+
<!-- posts -->
<div class='blog-posts hfeed'>
<b:include data='top' name='status-message'/>
追記。条件が間違っていたので修正した。
$ diff -w -u template-6143936844695013686.xml.2011-10-03.11 template-6143936844695013686.xml --- template-6143936844695013686.xml.2011-10-03.11 2011-10-03 21:09:17.194125000 +0900 +++ template-6143936844695013686.xml 2011-10-03 21:17:21.959750000 +0900 @@ -1627,7 +1627,7 @@ <b:includable id='main' var='top'> <b:if cond='data:mobile == "false"'> -<b:if cond='data:blog.pageType == "index"'> +<b:if cond='data:blog.url == data:blog.homepageUrl'> <div class='if-cond-data-blog-pageType-index'> ようこそ!!<br/> 現在トップページを表示しています。<br/>
0 件のコメント:
コメントを投稿