From b5b6471b5a5420d1bd410907ac12570b8436702e Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Fri, 23 Oct 2026 09:27:06 +0900 Subject: sanpi: 集計・全期間一覧・前後リンクを修正し、非公開に戻す MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SanpiPagination.astro | 93 ++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 src/components/SanpiPagination.astro (limited to 'src/components/SanpiPagination.astro') diff --git a/src/components/SanpiPagination.astro b/src/components/SanpiPagination.astro new file mode 100644 index 0000000..294ad76 --- /dev/null +++ b/src/components/SanpiPagination.astro @@ -0,0 +1,93 @@ +--- +// 年度別の賛否一覧ページの末尾に、前年度・次年度へのリンクを +// Starlight のページネーションと同じ見た目で表示する。 +// 年度別ページはサイドバーに登録していないため、Starlight 標準の +// Pagination では前後関係が決まらない。ここで明示的にリンクを渡す。 +import { Icon } from "@astrojs/starlight/components"; + +interface Link { + href: string; + label: string; +} + +interface Props { + prev?: Link; + next?: Link; +} + +const { prev, next } = Astro.props; +--- + +{ + (prev || next) && ( + + ) +} + + -- cgit v1.3.1