2026年9月18日金曜日

🚀[JetTheme]月のアーカイブでページャーを非表示に

JetTheme
    <b:includable id='JetPagination'>
<b:if cond='data:newerPageUrl || data:olderPageUrl'>
<b:if cond='data:view.isPost'>
<div class='d-sm-flex border-top border-bottom jt-border-light mb-5' id='post-pager'>
<b:if cond='data:newerPageUrl'>
<a class='d-block prev-page col-sm-6 py-3 pe-sm-3 border-sm-bottom jt-border-light text-reset text-center text-sm-start' expr:href='data:newerPageUrl.canonical'>
<span class='d-block pe-2 fs-7 fw-light'><svg aria-hidden='true' class='jt-icon'><use xlink:href='#i-arrow-l'/></svg>Next Post</span>
</a>
</b:if>
<b:if cond='data:olderPageUrl'>
<a class='d-block next-page col-sm-6 py-3 ps-sm-3 jt-border-light text-center text-sm-end text-reset ms-auto' expr:href='data:olderPageUrl.canonical'>
<span class='d-block ps-2 fs-7 fw-light'>Previous Post <svg aria-hidden='true' class='jt-icon'><use xlink:href='#i-arrow-r'/></svg></span>
</a>
</b:if>
</div>
<b:else/>
<div class='d-flex justify-content-evenly visually-hidden' expr:data-label='data:view.search.label' expr:data-pagination='!data:view.isArchive and !data:view.isPost and !data:view.search.query' expr:data-posts='data:posts.size' id='pagination'>
<!-- <b:if cond='data:newerPageUrl'>
<div class='prev-page me-3'>
<a class='btn btn-sm jt-btn-primary border-2 py-2 px-4 fw-bold' expr:href='data:newerPageUrl'><svg aria-hidden='true' class='jt-icon'><use xlink:href='#i-arrow-l'/></svg>Prev</a>
</div>
</b:if>
<b:if cond='data:olderPageUrl'>
<div class='next-page'>
<a class='btn btn-sm jt-btn-primary border-2 py-2 px-4 fw-bold' expr:href='data:olderPageUrl'>Next<svg aria-hidden='true' class='jt-icon'><use xlink:href='#i-arrow-r'/></svg></a>
</div>
</b:if>  -->
</div>
</b:if>
</b:if>
    </b:includable>

まぁこれでいいかな
空divが気になる場合は範囲を広げていいかもね

関連エントリ

「ブログ アーカイブ」ガジェット はとりあえず開閉式にするかな
追記
完了です
🚀[JetTheme]「ブログ アーカイブ」ガジェットを開閉式に

Dark Themeの Refine版で使っているコードは持ってこない

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