2025年6月9日月曜日

[Blogger]ページタイプ

Blogger

ぼちぼち自分用にまとめようと思っていたので

item (投稿)

(https://blogname.blogspot.com/YYYY/MM/*.html)

<b:if cond='data:blog.pageType == &quot;item&quot;'>

</b:if>

static_page (ページ)

(https://blogname.blogspot.com/p/*.html)

<b:if cond='data:blog.pageType == &quot;static_page&quot;'>

</b:if>

archive

(https://blogname.blogspot.com/YYYY/(MM))

<b:if cond='data:blog.pageType == &quot;archive&quot;'>

</b:if>

index

(https://blogname.blogspot.com/, https://blogname.blogspot.com/search)

<b:if cond='data:blog.pageType == &quot;index&quot;'>

</b:if>

インデックスとアーカイブは基本的にセットで使っています(まぁよくわからんので)

<b:if cond='data:blog.pageType in {&quot;index&quot;,&quot;archive&quot;}'>

</b:if>

Bloggerにはページタイプが存在するので、例えば投稿を1件だけ表示させているブログでも、テンプレートを編集していなければ、他のページタイプで投稿一覧が見れたりします

data:blog.url に続きます

おまけ

カスタム 404

<b:if cond='data:blog.pageType == &quot;error_page&quot;'>

</b:if>

F(uriouz)

欲しいものリスト / 優先度の高いほしいものリスト / ☕を奢る
Donate 寄付 カンパ サポート Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.
詳細プロフィールを表示

0 comments:

スパム対策の為コメントをオフにしています。
Disqusは利用出来ます。

注: コメントを投稿できるのは、このブログのメンバーだけです。

...

Recent Posts

 
"The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License."