From c8ffa65beb152460020e4ec7ec883c4082e8c1bf Mon Sep 17 00:00:00 2001 From: Akemi Izuko Date: Fri, 29 Dec 2023 16:57:55 -0700 Subject: [PATCH] Unix: add pages for unix --- src/layouts/UnixPost.astro | 245 +++++++++++++++++++++++++++++++++ src/pages/unix/[...slug].astro | 20 +++ src/pages/unix/index.astro | 106 ++++++++++++++ 3 files changed, 371 insertions(+) create mode 100644 src/layouts/UnixPost.astro create mode 100644 src/pages/unix/[...slug].astro create mode 100644 src/pages/unix/index.astro diff --git a/src/layouts/UnixPost.astro b/src/layouts/UnixPost.astro new file mode 100644 index 0000000..8322637 --- /dev/null +++ b/src/layouts/UnixPost.astro @@ -0,0 +1,245 @@ +--- +import type { CollectionEntry } from 'astro:content'; +import BaseHead from '../components/BaseHead.astro'; +import Header from '../components/Header.astro'; +import Footer from '../components/Footer.astro'; +import FormattedDate from '../components/FormattedDate.astro'; +import { Code } from 'astro:components'; + +type Props = CollectionEntry<'unix'>['data']; + +const { title, description, updateDate, updatedDate, heroImage } = Astro.props; +--- + + + + + + + + +
+
+
+
+

{title}

+
+ Updated on +
+
+ +
+
+ {heroImage && } +
+ +
+
+
+