diff --git a/components/post-storyline-nav.tsx b/components/post-storyline-nav.tsx index ab45c3d..851ac53 100644 --- a/components/post-storyline-nav.tsx +++ b/components/post-storyline-nav.tsx @@ -13,7 +13,6 @@ interface StationConfig { label: string; post?: Post; hint: string; - align: 'start' | 'center' | 'end'; rel?: 'prev' | 'next'; } @@ -21,144 +20,94 @@ export function PostStorylineNav({ current, newer, older }: Props) { const stations: StationConfig[] = [ { key: 'older', - label: '回程站', + label: '上一站', post: older, - hint: older - ? `發表於 ${formatDate(older.published_at)}` - : '這裡已是最早的文章', - align: 'start', + hint: older ? `發表於 ${formatDate(older.published_at)}` : '沒有更早的文章', rel: 'prev' }, { key: 'current', label: '你在這裡', post: current, - hint: current.published_at - ? `本篇發表於 ${formatDate(current.published_at)}` - : '草稿狀態', - align: 'center' + hint: current.published_at ? formatDate(current.published_at) : '草稿' }, { key: 'newer', - label: '前進站', + label: '下一站', post: newer, - hint: newer - ? `發表於 ${formatDate(newer.published_at)}` - : '還沒有更新的文章', - align: 'end', + hint: newer ? `發表於 ${formatDate(newer.published_at)}` : '還沒有新文章', rel: 'next' } ]; return ( -