2022年12月8日木曜日

[Blogger]特定のURLで外部CSSを読み込む

Blogger

<head>内に追加します

<b:if cond='data:blog.url == &quot;https://furiouzps.blogspot.com/2020/07/font-awesome-v4.7.0.html&quot;'>
<link href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css' rel='stylesheet'/>
</b:if>

今はこのページだけでFont Awesomeを読み込んでます
(プレビューでは読み込みが行われません)

旧版は痒い所に手が届かないですが、まだまだ使えるアイコンの種類は多いかと思いますが
Bootstrap Icons は線が細いので代替が難しい部分もありますね

追記
postId, pageIdを使った条件分岐 の方が良いかもしれません

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."