From 8dfc43cb022e698b7124753b0086cd9cbf2711ac Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Sun, 23 Oct 2022 14:58:10 +0200 Subject: [PATCH] Short links --- components/Blog/DiaryPageSelector.tsx | 8 ++++---- styles/Blog/DiaryPageSelector.module.scss | 18 +++++++++++++++++- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/components/Blog/DiaryPageSelector.tsx b/components/Blog/DiaryPageSelector.tsx index 5363510..7d1f5f2 100644 --- a/components/Blog/DiaryPageSelector.tsx +++ b/components/Blog/DiaryPageSelector.tsx @@ -43,8 +43,8 @@ const PageSelectorBar: NextPage = ({ pages, name, title, pageSel await router.push(link); }; - const prev = {prevLink ? < {pageSelected - 1 === 0 ? `${title} (Main Page)` : pages[pageSelected - 2]} : null}; - const next = {nextLink ? {pages[pageSelected]} > : null}; + const prev = {prevLink ? < {pageSelected - 1 === 0 ? "Main Page" : pages[pageSelected - 2]}< : null}; + const next = {nextLink ? {pages[pageSelected]} >> : null}; const select = (