Google Blogger template テンプレート ウィジェットの現出コンディション例
<b:widget cond='!data:mobile and (data:blog.pageType == "static_page" or data:blog.canonicalUrl in {"http://xxx.blogspot.com/search?q=B.TEMPLATE"})' />
ページタイプdata:blog.pageType
--------------------------
インデックス ページ: index
個々の投稿記事: item
アーカイブ: archive
ページ: static_page
<b:widget cond='data:blog.pageType in {"static_page","item"}'/> <b:widget cond='not data:view.isHomepage'/> <b:widget cond='data:view.isLayoutMode'/> <b:widget cond='data:view.isSingleItem and data:widget.type == "Blog"'/> <b:widget expr='data:view.isSearch ? data:messages.noResultsFound : data:messages.theresNothingHere'/> <b:widget cond='data:post.includeAd and data:post.adNumber lt (data:view.isHomepage ? 2 : 3)'/> <b:widget cond='data:view.isMultipleItems and data:post.featuredImage'/> <b:widget cond='data:view.isMultipleItems and not data:post.featuredImage'/>
<body>にクラスを与えます
<body> <b:class cond='data:view.isPreview' name='preview'/> <b:class cond='data:view.isHomepage' name='homepage-view'/> <b:class cond='data:view.isArchive' name='archive-view'/> <b:class cond='data:view.isLabelSearch' name='label-view'/> <b:class cond='data:view.isSearch and !data:view.isLabelSearch' name='search-view'/> <b:class cond='data:view.isPost' name='post-view'/> <b:class cond='data:view.isPage' name='page-view'/> <b:class cond='data:view.isMultipleItems' name='feed-view'/> <b:class cond='data:view.isSingleItem' name='item-view'/> <b:class cond='data:view.isSearch and data:view.search.query' name='search-focused'/>
<b:if cond='data:blog.pageType == "error_page"'>
レイアウト用のデータタグ - Blogger ヘルプ