diff --git a/src/content/config.ts b/src/content/config.ts index 35da1c7..1084935 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -8,6 +8,7 @@ const news = defineCollection({ pubDate: z.coerce.date(), banner: z.string(), bannerSize: z.number(), + extraFooterClass: z.string(), author: reference("authors"), }), }); diff --git a/src/content/news/_template.mdx b/src/content/news/_template.mdx index d01e769..d57c39c 100644 --- a/src/content/news/_template.mdx +++ b/src/content/news/_template.mdx @@ -3,6 +3,7 @@ title: example desc: example desc banner: path/to/banner author: eveeifyeve +extraFooterClass: mb-[90%] bannerSize: 100 link: 'https://teaclient.net/news' pubDate: 2024-03-19 diff --git a/src/content/news/updates/annoucing-our-wiki-25-8-24.mdx b/src/content/news/updates/annoucing-our-wiki-25-8-24.mdx index f8741b4..5f75d2e 100644 --- a/src/content/news/updates/annoucing-our-wiki-25-8-24.mdx +++ b/src/content/news/updates/annoucing-our-wiki-25-8-24.mdx @@ -2,6 +2,7 @@ title: Introducing our wiki desc: Introducing our wiki a wiki for both the developer and the user community. banner: /content/wiki-release1.png +extraFooterClass: mt-[45%] author: eveeifyeve bannerSize: 100 link: 'https://teaclient.net/news' diff --git a/src/content/news/updates/new-staffaplications-19-3-24.mdx b/src/content/news/updates/new-staffaplications-19-3-24.mdx index 2020e0c..f44dbc6 100644 --- a/src/content/news/updates/new-staffaplications-19-3-24.mdx +++ b/src/content/news/updates/new-staffaplications-19-3-24.mdx @@ -2,6 +2,7 @@ title: New Staff Applications! desc: Our New Staff Applications are now avalible for all to use. banner: /content/staff-app1.png +extraFooterClass: mt-[45%] author: eveeifyeve bannerSize: 100 link: 'https://teaclient.net/news' diff --git a/src/layouts/newspost.astro b/src/layouts/newspost.astro index 7b35021..c0956c4 100644 --- a/src/layouts/newspost.astro +++ b/src/layouts/newspost.astro @@ -11,8 +11,8 @@ import { Image } from "astro:assets"; import "../styles/style.css"; interface Props { - post: CollectionEntry<"news">; - className?: string; + post: CollectionEntry<"news">; + className?: string; } const { post, className } = Astro.props; @@ -29,14 +29,15 @@ const Sociallogosizes = 24;
<- Back to News Articles + ><- Back to News Articles Published on: {post.data.pubDate.toLocaleDateString() ?? ""}
@@ -53,7 +54,9 @@ const Sociallogosizes = 24;

{post.data.title ?? ""}

- +
+ +
@@ -70,39 +73,35 @@ const Sociallogosizes = 24; { authorData.socials && (
- { - authorData.socials.github && ( - - Github Logo - - ) - } - { - authorData.socials.discordServer && ( - - Github Logo - - ) - } + {authorData.socials.github && ( + + Github Logo + + )} + {authorData.socials.discordServer && ( + + Github Logo + + )}
) }
-