<b:if cond='data:view.isPage and !(data:view.pageId in [123456789, 897654321])'>
<!-- Here I pasted advertisement code -->
</b:if>
How to use conditional tags properly? - Blogger Community
https://support.google.com/blogger/thread/271332217?hl=en&msgid=271651016
複数のページに同じスタイルを適用する時などは [Blogger]postId, pageIdを使った条件分岐 よりこっちの方がいいですね
*上の例はページで上記のIdを含めないときなので、エクスクラメーションマーク(!)は必要に応じて取ってください
投稿の場合は data:view.isPost, postId に
<b:if cond='data:blog.pageId == "3862453985544119772"'> <style></style> <b:else/> <b:if cond='data:blog.pageId == "5600592251259648514"'> <style></style> <b:else/> <b:if cond='data:blog.pageId == "4866615541776242690"'> <style></style> </b:if> </b:if> </b:if>
こんな風に書いてたのが省略できました
投稿幅を広げているページで使用
- https://furiouzps.blogspot.com/p/thumbnail-generator-tool.html
- https://furiouzps.blogspot.com/p/code-inspector-tool.html
- https://furiouzps.blogspot.com/p/code-inspector-tool-2.html
追記
<b:if cond='data:view.pageId in [000000000, 000000000]'>
You are on a custom page!
</b:if>
<b:if cond='data:view.postId in [000000000, 000000000]'>
You are on a custom post!
</b:if>
Need help with better approach in blogger page conditions : r/blogspot
https://www.reddit.com/r/blogspot/comments/1nzc0by/need_help_with_better_approach_in_blogger_page/
省略できますね





0 comments:
スパム対策の為コメントをオフにしています。
Disqusは利用出来ます。
注: コメントを投稿できるのは、このブログのメンバーだけです。