JetThemeカスタマイズ

<!-- markdown-mode-on --> <style> .entry-text h2, .entry-text h3, .entry-text h4, .entry-text h5, .entry-text h6 { margin-top: 2em; margin-bottom: 1rem; } </style> <h2 id="概要" onmouseout="this.querySelector('a .headlink').style.display='none'" onmouseover="this.querySelector('a .headlink').style.display='inline-block'"> <strong> 概要 </strong> <a href="#概要" title="概要"> <i class="headlink" style="display: none;"> </i> </a> </h2> <p> Bloggerのテーマテンプレートに <a href="https://www.jettheme.com/"> Jettheme </a> を使うときのカスタマイズ。 <br/> 色々なWebブログから引張ってきたり、自分で試行錯誤したりのカスタマイズを備忘録にしておきます。 <img alt="jettheme logo" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEih6tkuCAB6zwNyTYCvTrA07cGstQGH7GBjCipsk3a6HoUiKVea-159v4oK4uq7qhXUjbbnX0Hm5Fds5sw7iiCzhqObJHwcnKQEf9-0iAqgpH6bSzH6FxQCVVBh-XrghyphenhyphenMUwaIjVewBQXI/s1600/jettheme-cover.png" width="320"/> </p> <p> 引用元はこのブログ </p> <figure class="blogcard b-link"> <a aria-label="記事詳細へ(別窓で開く)" href="https://www.limosuki.com/2021/11/jettheme-customize-list.html#toc_10" rel="noopener noreferrer" target="_blank"> <div class="blogcard-content"> <div class="blogcard-image bi-link"> <div class="blogcard-image-wrapper biw-link"> <img alt="【Blogger】JetTheme カスタマイズ方法一覧 | リモスキ" height="100" loading="lazy" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAGv4WwPnFcaBKnUDC2th1oRnKQDYntoQMVw6QC6EcUSIXJXCAVy-MiPxw3YQ9kq8Oqm9-gzhFt2aYWQHPSzYwxQRN_dvHKD05fNySE1d5yLYSP5mZaEP8w9_jh55I247r2X9kzOXGr9uHMzaAD1ni0UbWfuipzxMeVEemKNnhvLexkmo_xdjPw8_N0g/s1600-e365-rw/eyecatch-jettheme-ichiran.png" width="100"/> </div> </div> <div class="blogcard-text"> <p class="blogcard-title bt-link"> 【Blogger】JetTheme カスタマイズ方法一覧 | リモスキ </p> <p class="blogcard-description bd-link"> JetTheme を導入しますにあたって、いくつかカスタマイズを行いました。当ブログでのカスタマイズ内容・修正方法をこちらで紹介していきましたいと思います。 </p> </div> </div> <div class="blogcard-footer bf-link"> <img alt="ファビコン" height="16" loading="lazy" src="https://www.google.com/s2/favicons?domain=https://www.limosuki.com/2021/11/jettheme-customize-list.html#toc_10" width="16"/> www.limosuki.com </div> </a> </figure> <p> </p> <a name="more"></a> ## ヘッダ高さ ヘッダ高さが大きく感じるので、低くしてみました。 オリジナルは、#header { min-height: 50px; } となっていますが、ロゴ(テキスト表示)の関係か、73px でした。 <br/> 低くするには、以下のCSSを追加します。`/*Your custom CSS is here*/` の直下に置きました。 ```css /*Your custom CSS is here*/ #header { height: 2.6em; min-height: 20px; } ``` <h2> オリジナルロゴ作成 </h2> <div> 引用元ブログの” <a href="https://www.limosuki.com/2021/11/jettheme-customize-list.html#toc_3" target="_blank"> タイトルロゴに SVG 画像を設定 </a> ”に沿って変更します。 </div> <h2> (別法)テキストロゴでもOK </h2> <div> <figure class="blogcard b-link"> <a aria-label="記事詳細へ(別窓で開く)" href="https://8-stars.blogspot.com/2023/02/bloggerjettheme.html#toc_headline_8" rel="noopener noreferrer" target="_blank"> <div class="blogcard-content"> <div class="blogcard-image bi-link"> <div class="blogcard-image-wrapper biw-link"> <img alt="JetTheme+Bloggerの初期設定 | No.8" height="100" loading="lazy" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTkDlUiHlr8CTpNNYUcc_t4JZr9Gc02qRRPyOdvGUCVL4ACxIfTajOuUBRJkrXFcBr5uZEFJK3VE7hS1e1TRJ3rSSNDE2bV2bES70s8czPBY5GJ9YlIMlNKzLOJIUYuT0-ZWwR618UmK8JD_P_45bGXx5xMfQDKseE-r33mWV22g5M-F392aYyT3swMw/w640-h336-rw/jettheme-001.jpg" width="100"/> </div> </div> <div class="blogcard-text"> <p class="blogcard-title bt-link"> JetTheme+Bloggerの初期設定 | No.8 </p> <p class="blogcard-description bd-link"> ようやく新しいテンプレート「JetTheme」のカスタマイズが終わりました。といっても、まだ細かな部分が調整・確認しきれていませんが、まずは公開です。 カスタマイズの情報を今後のバージョンアップに備えた自分用のメモとして。 同テンプレートを使用されている先輩方も詳しく解説されてい... </p> </div> </div> <div class="blogcard-footer bf-link"> <img alt="ファビコン" height="16" loading="lazy" src="https://www.google.com/s2/favicons?domain=https://8-stars.blogspot.com/2023/02/bloggerjettheme.html#toc_headline_8" width="16"/> 8-stars.blogspot.com </div> </a> </figure> <p style="text-align: left;"> Headr分類のLogoウィジェットへは次のように書き込みます。 <br/> &lt;span class="text-gradient" id="blog-title"&gt;私の図書館&lt;/span&gt; </p> <div> <br/> </div> <div> <div class="separator" style="clear: both; text-align: center;"> <a href="https://blogger.googleusercontent.com/img/a/AVvXsEiWLqI7Ao5QFyMhL1gUgwFEU85szPCwPQURHSWFHFbjlN5MpF3rlkB67y4DNibBV-6TezLvut6cTdDgzkrBpfvE6Fnm7Jf1JEl-eorV3YcUZy2UHw95kiz7vhxh-n9AlzWYdiisZm3XqQxYhlnhLjorFnsJVKLDGGnIIbLKcgnhuEnV2F9abzb701jsPOGZ" style="margin-left: 1em; margin-right: 1em;"> <img alt="logo setting" data-original-height="505" data-original-width="555" height="364" src="https://blogger.googleusercontent.com/img/a/AVvXsEiWLqI7Ao5QFyMhL1gUgwFEU85szPCwPQURHSWFHFbjlN5MpF3rlkB67y4DNibBV-6TezLvut6cTdDgzkrBpfvE6Fnm7Jf1JEl-eorV3YcUZy2UHw95kiz7vhxh-n9AlzWYdiisZm3XqQxYhlnhLjorFnsJVKLDGGnIIbLKcgnhuEnV2F9abzb701jsPOGZ=w400-h364" width="400"/> </a> </div> <br/> <br/> </div> <div> テキストのスタイルはCSSに書きます。 </div> <div> <br/> </div> <pre><code class="language-css"> /*テキストロゴにグラデーションなどの装飾*/ .text-gradient { background: -moz-linear-gradient(left, #FFAC08, #f67938);/*左から右へグラデーション*/ background: -webkit-linear-gradient(left, #FFAC08, #f67938); background: linear-gradient(to right, #FFAC08, #f67938);/* 背景にグラデーションを適用する */ -webkit-background-clip: text;/* 背景を文字の形に切り取る */ -webkit-text-fill-color: transparent;/* 文字を透明にする */ } @media (min-width: 992px) { #blog-title { font-size: 2.0em; margin: 0px !important; } /*ヘッダー高さ調整*/ #header-main { margin-top: 1em; } } @media (max-width: 991.98px) { #blog-title { font-size: 1.5em; margin: 0px !important; } /*ヘッダー高さ調整*/ #header { max-height: 5rem; } } @media (max-width: 575.98px) { #blog-title { font-size: 1em !important; } /*ヘッダー高さ調整*/ #header { max-height: 4rem; } } </code></pre> <p style="text-align: left;"> グラデーションのつけ方はここで調べました。(コピペしました。) </p> <figure class="blogcard b-link"> <a aria-label="記事詳細へ(別窓で開く)" href="https://kouhekikyozou.com/css_text_gradation" rel="noopener noreferrer" target="_blank"> <div class="blogcard-content"> <div class="blogcard-image bi-link"> <div class="blogcard-image-wrapper biw-link"> <img alt="CSSだけ!文字にグラデーションを付ける方法&サンプルコード集 | 向壁虚造" height="100" loading="lazy" src="https://kouhekikyozou.com/wp-content/uploads/css_text_gradation.png" width="100"/> </div> </div> <div class="blogcard-text"> <p class="blogcard-title bt-link"> CSSだけ!文字にグラデーションを付ける方法&サンプルコード集 | 向壁虚造 </p> <p class="blogcard-description bd-link"> CSSで文字色にグラデーションをかけるテクニックを紹介。また、コピペですぐ実装できるサンプルデザイン&コードも掲載しています。linear-gradientやbackground-cripで美しいグラデーション文字を作れます。 </p> </div> </div> <div class="blogcard-footer bf-link"> <img alt="ファビコン" height="16" loading="lazy" src="https://www.google.com/s2/favicons?domain=https://kouhekikyozou.com/css_text_gradation" width="16"/> kouhekikyozou.com </div> </a> </figure> <h2 id="Home_ページを横1列に変更" onmouseout="this.querySelector('a .headlink').style.display='none'" onmouseover="this.querySelector('a .headlink').style.display='inline-block'"> トップページを横1列のカード形式に変更 <a href="#Home_ページを横1列に変更" title="Home_ページを横1列に変更"> <i class="headlink" style="display: none;"> </i> </a> </h2> <figure class="blogcard b-link"> <a aria-label="記事詳細へ(別窓で開く)" href="https://www.limosuki.com/2021/11/jettheme-top-customize.html" rel="noopener noreferrer" target="_blank"> <div class="blogcard-content"> <div class="blogcard-image bi-link"> <div class="blogcard-image-wrapper biw-link"> <img alt="【Blogger】JetTheme のトップページをリスト形式にしますカスタマイズ | リモスキ" height="100" loading="lazy" src="https://blogger.googleusercontent.com/img/a/AVvXsEjWtPoxhq422RdmRlklINLa2BYQmTkYsltO0ls3eohV0mAHaBso-6kCgzSfrpL6U4TKdPN7du5n34B9MkVzrJ_y0M3_rdRcYui3ytP-h9bzCOvr7m5MwCc8fSSGqVBjK8ubar4UfiDnhjEwAVc1qyPMoDzE-8xKgCJ_7QOwD6tNbADV6dhOY65icWQNSw=s0-rw-e365" width="100"/> </div> </div> <div class="blogcard-text"> <p class="blogcard-title bt-link"> 【Blogger】JetTheme のトップページをリスト形式にしますカスタマイズ | リモスキ </p> <p class="blogcard-description bd-link"> JetTheme のトップページ記事一覧をリスト形式にしますカスタマイズ方法をご紹介します。 </p> </div> </div> <div class="blogcard-footer bf-link"> <img alt="ファビコン" height="16" loading="lazy" src="https://www.google.com/s2/favicons?domain=https://www.limosuki.com/2021/11/jettheme-top-customize.html" width="16"/> www.limosuki.com </div> </a> </figure> <h2 id="右上のシェアボタンのみを消す" onmouseout="this.querySelector('a .headlink').style.display='none'" onmouseover="this.querySelector('a .headlink').style.display='inline-block'"> 右上のシェアボタンのみを消す <a href="#右上のシェアボタンのみを消す" title="右上のシェアボタンのみを消す"> <i class="headlink" style="display: none;"> </i> </a> </h2> <figure class="blogcard b-link"> <a aria-label="記事詳細へ(別窓で開く)" href="https://www.plz-reference.com/2022/09/blogger-jettheme.html" rel="noopener noreferrer" target="_blank"> <div class="blogcard-content"> <div class="blogcard-image bi-link"> <div class="blogcard-image-wrapper biw-link"> <img alt="【Blogger】JetThemeの導入とカスタマイズ - plz-reference-blog" height="100" loading="lazy" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3jjs15fII5y7ad90D7Jb8fH4JU7kpgsICjSGqFawjEsXsi7j8v1IQamhV8SsSt-oYpwCycenCUy7fQekQlHL7gfZl--2SlXEMLf6RCgq64MuR0xYLXX1waLBOxBc0hFxQEDM2bVyGbcY5K-Czzpgvhr0_OaoK5La9S7084Mbts7-MwJ4QCQh8B-Fy/w400-h210/jettheme.png" width="100"/> </div> </div> <div class="blogcard-text"> <p class="blogcard-title bt-link"> 【Blogger】JetThemeの導入とカスタマイズ - plz-reference-blog </p> <p class="blogcard-description bd-link"> Blogger用のシンプルかつ高速でおしゃれなJetThemeの導入方法と、カスタマイズをいくつかまとめてみました。 </p> </div> </div> <div class="blogcard-footer bf-link"> <img alt="ファビコン" height="16" loading="lazy" src="https://www.google.com/s2/favicons?domain=https://www.plz-reference.com/2022/09/blogger-jettheme.html" width="16"/> www.plz-reference.com </div> </a> </figure> <h2 id="日付の書式を変更" onmouseout="this.querySelector('a .headlink').style.display='none'" onmouseover="this.querySelector('a .headlink').style.display='inline-block'"> ヘッダーが見え隠れするのを止める </h2> <div> <br/> </div> <figure class="blogcard b-link"> <a aria-label="記事詳細へ(別窓で開く)" href="https://www.limosuki.com/2021/11/jettheme-customize-list.html#toc_2" rel="noopener noreferrer" target="_blank"> <div class="blogcard-content"> <div class="blogcard-image bi-link"> <div class="blogcard-image-wrapper biw-link"> <img alt="【Blogger】JetTheme カスタマイズ方法一覧 | リモスキ" height="100" loading="lazy" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAGv4WwPnFcaBKnUDC2th1oRnKQDYntoQMVw6QC6EcUSIXJXCAVy-MiPxw3YQ9kq8Oqm9-gzhFt2aYWQHPSzYwxQRN_dvHKD05fNySE1d5yLYSP5mZaEP8w9_jh55I247r2X9kzOXGr9uHMzaAD1ni0UbWfuipzxMeVEemKNnhvLexkmo_xdjPw8_N0g/s1600-e365-rw/eyecatch-jettheme-ichiran.png" width="100"/> </div> </div> <div class="blogcard-text"> <p class="blogcard-title bt-link"> 【Blogger】JetTheme カスタマイズ方法一覧 | リモスキ </p> <p class="blogcard-description bd-link"> JetTheme を導入するにあたって、いくつかカスタマイズを行いました。当ブログでのカスタマイズ内容・修正方法をこちらで紹介していきたいと思います。 </p> </div> </div> <div class="blogcard-footer bf-link"> <img alt="ファビコン" height="16" loading="lazy" src="https://www.google.com/s2/favicons?domain=https://www.limosuki.com/2021/11/jettheme-customize-list.html#toc_2" width="16"/> www.limosuki.com </div> </a> </figure> <h2 id="日付の書式を変更" onmouseout="this.querySelector('a .headlink').style.display='none'" onmouseover="this.querySelector('a .headlink').style.display='inline-block'"> 見出しデザイン </h2> <div> デフォルトでは見出しがわかりにくいので、デザインを変えました。ユーザCSSの最後に以下を追加します。 </div> <div> <br/> </div> <pre><code class="language-css">/*--記事内の見出し--*/ .entry-text h2 { /* 2重下線 */ font-color: var(--ts-main-font); font-size: 1.5rem; border-bottom: double 5px var(--ts-main); padding: 0 0 0.2rem 0.1rem; margin: 2.5rem 0 1rem 0; } .entry-text h3 { /* 文字範囲下線 */ display: inline-block; font-size: 1.25rem; border-bottom: solid 2px var(--ts-main); padding: 0 0 0 0.3rem; margin: 2rem 0 1rem 0; } .entry-text h4 { /* 行頭太線 */ font-size: 1.0rem; border-left: solid 0.2rem var(--ts-main); padding: 0 0 0 0.5rem; margin: 2rem 0 1rem 0.5rem; } </code></pre> <h2 id="日付の書式を変更" onmouseout="this.querySelector('a .headlink').style.display='none'" onmouseover="this.querySelector('a .headlink').style.display='inline-block'"> 日付の書式を変更 <a href="#日付の書式を変更" title="日付の書式を変更"> <i class="headlink" style="display: none;"> </i> </a> </h2> <p> 「ブログの投稿」から、フォーマットが変更できるようになりました。 </p> <img alt="ブログ投稿" src="https://blogger.googleusercontent.com/img/a/AVvXsEgaTgDYOhsKNFeh7zH7TEN2k2cUcP1Vj_FUDuCA-9zsdj9u2OVdXu3PUDcPT-rP0GPkZn6mRq6QM3GynL_hCjdPIxXliIuNygGpOsNRh-wW2EyZvJ0IRBmRFjHwI8d-wCAI7LgJTUauhBf5XBLYfipt7W_ht0CT3c7y8D_lVHIFYyaUD7pzhGhL9v3Dpjaz" width="800"/> <h2 id="更新日の追加" onmouseout="this.querySelector('a .headlink').style.display='none'" onmouseover="this.querySelector('a .headlink').style.display='inline-block'"> 更新日の追加 <a href="#更新日の追加" title="更新日の追加"> <i class="headlink" style="display: none;"> </i> </a> </h2> <p> 日付はトップ(Home)ページの記事一覧と個別記事に表示されています。ここでは、個別記事だけをアイコン付きの更新日表示に変更点します。 </p> <figure class="blogcard b-link"> <a aria-label="記事詳細へ(別窓で開く)" href="https://www.heavy-peat.com/2021/09/add-update-date.html" rel="noopener noreferrer" target="_blank"> <div class="blogcard-content"> <div class="blogcard-image bi-link"> <div class="blogcard-image-wrapper biw-link"> <img alt="「JetTheme」の日付の書式変更と更新日の追加方法 - after work lab" height="100" loading="lazy" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2IoLBkcGPNgEYO3-M2wc5gH2j-cGXCFtRWFHb8l403lsyuVISqUmksEGYHL4RGT2ybDBA2PMuQeeFNZ04xO6zYV9CAkSV-4rlrBHaBA-9IeipGyYsqSTHiIMh30t2wEMe6Ucszd5rT4tv/s800-e365-rw/update-3314287_1200-628.jpg" width="100"/> </div> </div> <div class="blogcard-text"> <p class="blogcard-title bt-link"> 「JetTheme」の日付の書式変更と更新日の追加方法 - after work lab </p> <p class="blogcard-description bd-link"> はじめに この記事は「JetTheme」の日付の書式と更新日を追加しますカスタマイズ方法の説明です。 デフォルトの表示に不満を持っています方は参考にご覧ください。 なお、上手く行かなかったとき元に戻す為に、変更前に必ずxmlファイルのバックアップを取り保存しておい... </p> </div> </div> <div class="blogcard-footer bf-link"> <img alt="ファビコン" height="16" loading="lazy" src="https://www.google.com/s2/favicons?domain=https://www.heavy-peat.com/2021/09/add-update-date.html" width="16"/> www.heavy-peat.com </div> </a> </figure> <ul> <li> SVGアイコンの登録 </li> <li> コードの修正 </li> </ul> この2項目を行います。 <div> <br/> <div> 最初に、SVGアイコンの登録を引用元どおりに行いました。 </div> <div> <a href="https://iconsvg.xyz/" target="_blank"> SVGアイコンサイト </a> から持ってきたアイコンは <svg aria-hidden="true" class="me-1 jt-icon"> <use xlink:href="#i-rotate-left"> </use> </svg> です。これを「レイアウト」の一番下にある「JetTheme Setting」分類にある「SVG icons」に登録します。 </div> <div> <p style="text-align: left;"> 「SVG icons」の編集を開き、アイコンサイトからコピペした下記の構文を登録します。このとき大きさの調整のため、 <b> width="14" height="14" </b> に変更しています。 </p> <pre><code class="language-html"> &lt;symbol id="i-rotate-left" xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewbox="0 0 24 24" fill="none" stroke="#000000" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"&gt; &lt;path d="M2.5 2v6h6M21.5 22v-6h-6"/&gt;&lt;path d="M22 11.5A10 10 0 0 0 3.2 7.2M2 12.5a10 10 0 0 0 18.8 4.2"/&gt; &lt;/path&gt;&lt;/path&gt;&lt;/symbol&gt;</code></pre> <p> <br/> </p> <p> 続いて、 <b> &lt;b:includable id='JetPost' var='post'&gt; </b> を探して、その10行ほど下にある </p> <pre><code class="language-html"> &lt;div class='me-3'&gt;&lt;svg aria-hidden='true' class='me-1 jt-icon'&gt;&lt;use xlink:href='#i-clock'/&gt;&lt;/svg&gt;&lt;span class='date-format' expr:data-date='data:post.date.iso8601'&gt;&lt;b:eval expr='data:jwidget.allBylineItems.timestamp.label ? data:post.date format data:jwidget.allBylineItems.timestamp.label : data:post.date'/&gt;&lt;/span&gt;&lt;/div&gt; </code></pre> <p> をごっそりと次の内容に書き換えます。引用元と同じく <b> i-rotate-left </b> でアイコン登録をしたので、更新日に付与する <b> SVGアイコン </b> のidは <b> i-rotate-left </b> にしています。 </p> <pre><code class="language-html">&lt;!-- 更新日追加 Start--&gt; &lt;div class='me-3'&gt; &lt;svg aria-hidden='true' class='me-1 jt-icon'&gt;&lt;use xlink:href='#i-clock'/&gt;&lt;/svg&gt; &lt;span class='small date-format' expr:data-date='data:post.date.iso8601'&gt; &lt;data:post.date.year/&gt;/ &lt;b:eval expr='data:post.date.month lt 10 ? "0" + data:post.date.month : data:post.date.month'/&gt;/ &lt;b:eval expr='data:post.date.day lt 10 ? "0" + data:post.date.day : data:post.date.day'/&gt; &lt;/span&gt; &lt;b:if cond='data:post.date != data:post.lastUpdated'&gt;?? &lt;svg aria-hidden='true' class='me-1 jt-icon'&gt;&lt;use xlink:href='#i-rotate-left'/&gt;&lt;/svg&gt; &lt;span class='small date-format' expr:data-date='data:post.lastUpdated.iso8601'&gt; &lt;data:post.lastUpdated.year/&gt;/ &lt;b:eval expr='data:post.lastUpdated.month lt 10 ? "0" + data:post.lastUpdated.month : data:post.lastUpdated.month'/&gt;/ &lt;b:eval expr='data:post.lastUpdated.day lt 10 ? "0" + data:post.lastUpdated.day : data:post.lastUpdated.day'/&gt; &lt;/span&gt; &lt;/b:if&gt; &lt;/div&gt; &lt;!-- 更新日追加 End --&gt; </code></pre> <h2 id="ナビゲーションメニューを中央配置にします" onmouseout="this.querySelector('a .headlink').style.display='none'" onmouseover="this.querySelector('a .headlink').style.display='inline-block'"> <a href="https://www.limosuki.com/2021/11/jettheme-customize-list.html#toc_11"> ヘッダメニューを中央配置 </a> ← 引用元へジャンプ <a href="#ナビゲーションメニューを中央配置にします" title="ナビゲーションメニューを中央配置にします"> <i class="headlink" style="display: none;"> </i> </a> </h2> <pre><code class="language-html">&lt;ul class='navbar-nav px-4 p-lg-0 container' itemscope='itemscope' itemtype='http://schema.org/SiteNavigationElement' role='menu'&gt; </code></pre> <p> を書き換えます。引用元の右寄せは好みに合わなかったので、中央配置にしています。 <br/> <b> justify-content-end ---&gt; justify-content-center </b> </p> <pre><code class="language-html"> &lt;ul class='navbar-nav px-4 p-lg-0 container justify-content-center' itemscope='itemscope' itemtype='http://schema.org/SiteNavigationElement' role='menu'&gt; </code></pre> <h2 id="RATED_POST_(関連記事)" onmouseout="this.querySelector('a .headlink').style.display='none'" onmouseover="this.querySelector('a .headlink').style.display='inline-block'"> RELATED POST (関連記事) <a href="#RATED_POST_(関連記事)" title="RATED_POST_(関連記事)"> <i class="headlink" style="display: none;"> </i> </a> </h2> ### 関連記事の表示設定について <ul> <li> "RELATED POST" は、Blogger管理>設定>読者の権限>一般公開 でなければ、表示されません。他にも、"#You may also like" やページャなども同様です。 </li> <li> また、ラベル(label)を設定していなければ、"RELATED POST" は表示されません。"RELATED POST" は同じラベルにあるカテゴリの記事から、抽出しています。他にも、Jettheme標準のサイトマップも同様です。 </li> </ul> <p style="text-align: left;"> <span style="font-size: large;"> <br/> </span> </p> <figure class="blogcard b-link"> <a aria-label="記事詳細へ(別窓で開く)" href="https://www.limosuki.com/2021/11/jettheme-customize-list.html#toc_10" rel="noopener noreferrer" target="_blank"> <div class="blogcard-content"> <div class="blogcard-image bi-link"> <div class="blogcard-image-wrapper biw-link"> <img alt="【Blogger】JetTheme カスタマイズ方法一覧 | リモスキ" height="100" loading="lazy" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAGv4WwPnFcaBKnUDC2th1oRnKQDYntoQMVw6QC6EcUSIXJXCAVy-MiPxw3YQ9kq8Oqm9-gzhFt2aYWQHPSzYwxQRN_dvHKD05fNySE1d5yLYSP5mZaEP8w9_jh55I247r2X9kzOXGr9uHMzaAD1ni0UbWfuipzxMeVEemKNnhvLexkmo_xdjPw8_N0g/s1600-e365-rw/eyecatch-jettheme-ichiran.png" width="100"/> </div> </div> <div class="blogcard-text"> <p class="blogcard-title bt-link"> 【Blogger】JetTheme カスタマイズ方法一覧 | リモスキ </p> <p class="blogcard-description bd-link"> JetTheme を導入しますにあたって、いくつかカスタマイズを行いました。当ブログでのカスタマイズ内容・修正方法をこちらで紹介していきましたいと思います。 </p> </div> </div> <div class="blogcard-footer bf-link"> <img alt="ファビコン" height="16" loading="lazy" src="https://www.google.com/s2/favicons?domain=https://www.limosuki.com/2021/11/jettheme-customize-list.html#toc_10" width="16"/> www.limosuki.com </div> </a> </figure> <p> <a href="https://www.limosuki.com/2021/11/jettheme-customize-list.html#toc_10"> 上記の引用元 </a> に沿って行うと、4 記事表示から 6 記事に変更できました。 </p> <h3 id="余白調整" onmouseout="this.querySelector('a .headlink').style.display='none'" onmouseover="this.querySelector('a .headlink').style.display='inline-block'"> 余白調整 <a href="#余白調整" title="余白調整"> <i class="headlink" style="display: none;"> </i> </a> </h3> <p> Bootstrap の記述なので、 <a href="https://www.limosuki.com/2022/02/bootstrap5-class.html" target="_blank"> ここ </a> などでBootstrapを調べながら作業します。 <br/> デフォルトでは、1.5rem のマージンでしたので、これを0.5rem に変更しました。 </p> <h4 id="左右の余白調整(水平方向の余白調整)" onmouseout="this.querySelector('a .headlink').style.display='none'" onmouseover="this.querySelector('a .headlink').style.display='inline-block'"> 左右の余白調整(水平方向の余白調整) <a href="#左右の余白調整(水平方向の余白調整)" title="左右の余白調整(水平方向の余白調整)"> <i class="headlink" style="display: none;"> </i> </a> </h4> <p> <b> /*&lt;![CDATA[*/ </b> の下にあるコードから、 <b> function related </b> を探し、 </p> <pre><code class="language-html">&lt;div class='row row-cols-2 row-cols-md-3'&gt; </code></pre> <p> を </p> <pre><code class="language-html">&lt;div class='row row-cols-2 row-cols-md-3 gx-2'&gt; </code></pre> <p> に変更します。 </p> <h4 id="上下の余白調整(垂直方向の余白調整)" onmouseout="this.querySelector('a .headlink').style.display='none'" onmouseover="this.querySelector('a .headlink').style.display='inline-block'"> 上下の余白調整(垂直方向の余白調整) <a href="#上下の余白調整(垂直方向の余白調整)" title="上下の余白調整(垂直方向の余白調整)"> <i class="headlink" style="display: none;"> </i> </a> </h4> <p> 同じく、少し下段にあります、 </p> <pre><code class="language-html"> return "&lt;article class='mb-4'&gt; </code></pre> <p> を </p> <pre><code class="language-html"> return "&lt;article class='mb-2'&gt; </code></pre> <p> に変更します。 </p> <h2 id="関連リンク" onmouseout="this.querySelector('a .headlink').style.display='none'" onmouseover="this.querySelector('a .headlink').style.display='inline-block'"> ブログカード </h2> <div> <br/> </div> <figure class="blogcard b-link"> <a aria-label="記事詳細へ(別窓で開く)" href="https://www.heavy-peat.com/2021/12/ideal-blog-card.html#%E3%83%96%E3%83%AD%E3%82%B0%E3%82%AB%E3%83%BC%E3%83%89%E3%81%AE%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95" rel="noopener noreferrer" target="_blank"> <div class="blogcard-content"> <div class="blogcard-image bi-link"> <div class="blogcard-image-wrapper biw-link"> <img alt="理想のブログカードでページスピードを上げる方法 - after work lab" height="100" loading="lazy" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9WCmoWo0gNECoxnOXZ5NfLGofz8xB5cWZj2k4zOZs8mEkihDqXiyTGQwUwk7hxOZnLOp4P_hvBfUaK-U7cmSv0uPOw4rd7xTQzSEFO4hLoympeb7DO3Vhyphenhyphen1bnVN80ISpwCxWd4se6AWFQ/s1200-e365-rw/kid-g5286d3cfc_1200-2.jpg" width="100"/> </div> </div> <div class="blogcard-text"> <p class="blogcard-title bt-link"> 理想のブログカードでページスピードを上げる方法 - after work lab </p> <p class="blogcard-description bd-link"> はじめに ブロガーの皆さん、ブログカードって使ってますか。 はてなブログ、WordPress、アメーバブログには、ブログカードorリンクカードが簡単に作れるのですが、FC2ブログやBloggerには、そのような機能は提供されてません。 その為、当Webサイトでは、はて... </p> </div> </div> <div class="blogcard-footer bf-link"> <img alt="ファビコン" height="16" loading="lazy" src="https://www.google.com/s2/favicons?domain=https://www.heavy-peat.com/2021/12/ideal-blog-card.html#%E3%83%96%E3%83%AD%E3%82%B0%E3%82%AB%E3%83%BC%E3%83%89%E3%81%AE%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95" width="16"/> www.heavy-peat.com </div> </a> </figure> <h2 id="関連リンク" onmouseout="this.querySelector('a .headlink').style.display='none'" onmouseover="this.querySelector('a .headlink').style.display='inline-block'"> Footerの帯 </h2> <div> フッターにはCopyright以外はガジェットを置かないので、下図のバック帯をなくします。 </div> <div> <div class="separator" style="clear: both; text-align: center;"> <a href="https://blogger.googleusercontent.com/img/a/AVvXsEhZVgSUJeao7JlXMPYzG1TLPOKzLEF1_ZdHmI3D6TPDW5UbeE9VCUZd_nX5yiqWLuqQys0cN7yuKr8-o3AJmHEee_YuFGVTmBRRxpkE1ale9GJ-5vlfrQ4s6Uoyt0BqlC-IY7AKALyzZWdhOGywoM-rzhMzYA2s8-3AsgI5wT3g9OdyXGn7YcMj38YEQkp5" style="margin-left: 1em; margin-right: 1em;"> <img alt="フッタ画像" data-original-height="237" data-original-width="854" height="178" src="https://blogger.googleusercontent.com/img/a/AVvXsEhZVgSUJeao7JlXMPYzG1TLPOKzLEF1_ZdHmI3D6TPDW5UbeE9VCUZd_nX5yiqWLuqQys0cN7yuKr8-o3AJmHEee_YuFGVTmBRRxpkE1ale9GJ-5vlfrQ4s6Uoyt0BqlC-IY7AKALyzZWdhOGywoM-rzhMzYA2s8-3AsgI5wT3g9OdyXGn7YcMj38YEQkp5=w640-h178" width="640"/> </a> </div> <b> id='footer-main' </b> で検索して、 <br/> <br/> </div> <pre><code class="language-html"> &lt;div class='py-5 fs-7' id='footer-main'&gt; </code></pre> <p> を下記に書き換えます。(上下のパディング3rem py-5 を0rem py-0 にします。) </p> <p> 引用元と同じく <b> i-rotate-left </b> でアイコン登録をしたので、更新日に付与する <b> SVGアイコン </b> のidは <b> i-rotate-left </b> にしています。 </p> <pre><code class="language-html">&lt;div class='py-0 fs-7' id='footer-main'&gt;</code></pre> <h2 id="関連リンク" onmouseout="this.querySelector('a .headlink').style.display='none'" onmouseover="this.querySelector('a .headlink').style.display='inline-block'"> Copyright の更新日付 </h2> <div> 「c 2021-xxxx '著作権者名' Design by JetTheme.com」と書く場合 </div> <div> <br/> <pre><code class="language-html"> Copyright &amp;copy; 2021 &lt;script type="text/javascript"&gt;myDate = new Date() ;myYear = myDate.getFullYear ();if(myYear&gt; '2021') document.write('-' + myYear);&lt;/script&gt; '著作権者名' Design by &lt;a href="https://www.jettheme.com"&gt;JetTheme.com&lt;/a&gt; </code></pre> </div> ## SVGアイコンの新規追加と使い方 <figure class="blogcard b-link"> <a aria-label="記事詳細へ(別窓で開く)" href="https://hirokuasaku-live.blogspot.com/2025/02/blogger-jettheme-customize.html" rel="noopener noreferrer" target="_blank"> <div class="blogcard-content"> <div class="blogcard-image bi-link"> <div class="blogcard-image-wrapper biw-link"> <img alt="ブログデザインをJetThemeに変更。独自のカスタマイズも紹介 - 広く浅く生きる。" height="100" loading="lazy" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYKkYueKcv8Gjhgwkp8tYf7Tb-HlmUHHySzNa86MIFZZp-76OhuQb15TdIjr_F_-yGbhp177opw-b_zBAAnvwF4pNo-QgB1LwFssmTRqm-BE-PCZu5E1B6T-iwzmpEiOuzKLJTn5jp7rbJ02C5oDUR077AYR2-fnbMrqi-fiyXYKU7WOYBKeikFHCgmODF/w640-h336-e365/change-jettheme.jpg" width="100"/> </div> </div> <div class="blogcard-text"> <p class="blogcard-title bt-link"> ブログデザインをJetThemeに変更。独自のカスタマイズも紹介 - 広く浅く生きる。 </p> <p class="blogcard-description bd-link"> ブログデザインをJetThemeに変更しました。独自のカスタマイズとして、TwitterのアイコンをXのアイコンに変更する方法やダークモードで色を変更する方法、ブログ記事上のコメントアイコンをコメント数に関わらず表示する方法、見落としがちなコメントフォームの背景色設定を紹介。 </p> </div> </div> <div class="blogcard-footer bf-link"> <img alt="ファビコン" height="16" loading="lazy" src="https://www.google.com/s2/favicons?domain=https://hirokuasaku-live.blogspot.com/2025/02/blogger-jettheme-customize.html" width="16"/> hirokuasaku-live.blogspot.com </div> </a> </figure> ### 新規追加 「テーマデザイン」→「レイアウト」→「jettheme setting」→「SVG icons」>「編集」 ![Svg新規追加](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLnjzMjK54ng1TIX23BBEQK_0zWshTvzl13QsULIVa-4CrGH-B42mwvph3WGEyx7sLYLipzW2_2YLWx_q-zIUQmziPAErZzWifevqT8gFwWkIkfYaUQE2Dq92gR3OZvPoEkrB9IhKyqob32E4U_Zc11dnGxFp_XHkNByMuEF77VWNJJb8ewpMvKgStnNej/w640-h298/image.png) 1. `<svg>`タグを `<symbol>`タグに変更 1. width, height, fill(fillはsvgタグ内とpathタグ内のもの両方)を削除 1. xmlns属性を削除 1. idを設定(idはi-chatgptとした) 1. **グラデーション(`<defs>`タグ)をつけると登録したアイコンが表示できなかった** ### 使い方 `<use>`コマンドを使う。テキストを追加するときは、テキストを`<span>`タグで囲む。 ```html <svg height="24" width="24"> <use xlink:href="#i-chatgpt"> </use> </svg> <span style="font-size: 12px;"> </span> ChatGPT ``` <svg height="24" width="24"><use xlink:href="#i-chatgpt"> </use> </svg> <span style="font-size: 12px;"> </span> ChatGPT ## 関連リンク
Next Post Previous Post