From b5b66d3841cebac5ab34744e63fc60e2a69a7252 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sat, 15 Jul 2023 13:43:54 -0400 Subject: New page; Post system; Fixed more padding --- app/layout.js | 22 +++--- app/not-found.js | 2 +- app/page.js | 27 ++++--- app/travel-advisory/page.js | 11 ++- app/updates/[slug]/page.js | 39 ++++++++++ app/updates/page.js | 22 ++++++ components/PostPreview.js | 14 ++++ components/getPostMetadata.js | 20 ++++++ package.json | 5 ++ posts/test.md | 163 ++++++++++++++++++++++++++++++++++++++++++ posts/welcome.md | 11 +++ public/next.svg | 1 - tailwind.config.js | 4 +- yarn.lock | 98 +++++++++++++++++++++++++ 14 files changed, 409 insertions(+), 30 deletions(-) create mode 100644 app/updates/[slug]/page.js create mode 100644 app/updates/page.js create mode 100644 components/PostPreview.js create mode 100644 components/getPostMetadata.js create mode 100644 posts/test.md create mode 100644 posts/welcome.md delete mode 100644 public/next.svg diff --git a/app/layout.js b/app/layout.js index 118fad1..97c14ab 100644 --- a/app/layout.js +++ b/app/layout.js @@ -6,7 +6,10 @@ import Image from "next/image"; const exo = Exo({ subsets: ['latin'] }) export const metadata = { - title: 'Government of Alure Regions', + title: { + template: '%s - Government of Alure Regions', + default: 'Government of Alure Regions' + }, description: 'The official website of the Government of Alure Regions', } @@ -38,29 +41,22 @@ export default function RootLayout({ children }) { {children} -