Skip to content

Commit

Permalink
assortment
Browse files Browse the repository at this point in the history
  • Loading branch information
Reed Nelson committed Aug 12, 2023
1 parent adb678a commit 5b081de
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 57 deletions.
Binary file removed public/images/avatar-sm.png
Binary file not shown.
Binary file removed public/images/image-placeholder.png
Binary file not shown.
4 changes: 2 additions & 2 deletions src/config/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
},
"fonts": {
"font_family": {
"primary": "Heebo:wght@400;600",
"primary": "Calibri:wght@400;600",
"primary_type": "sans-serif",
"secondary": "Signika:wght@500;700",
"secondary": "Garamond:wght@500;700",
"secondary_type": "sans-serif"
},
"font_size": {
Expand Down
12 changes: 0 additions & 12 deletions src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,9 @@ const projectCollection = defineCollection({
}),
});

// Pages collection schema
const pagesCollection = defineCollection({
schema: z.object({
title: z.string(),
meta_title: z.string().optional(),
description: z.string().optional(),
image: z.string().optional(),
draft: z.boolean().optional(),
}),
});

// Export collections
export const collections = {
blog: blogCollection,
drink: drinkCollection,
projects: projectCollection,
pages: pagesCollection,
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Riddles
title: "Riddles"
meta_title: "Riddles"
---

<details>
Expand Down
41 changes: 0 additions & 41 deletions src/pages/[regular].astro

This file was deleted.

27 changes: 27 additions & 0 deletions src/pages/riddles.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
import Base from "@/layouts/Base.astro";
import PageHeader from "@/partials/PageHeader.astro";
import { getEntryBySlug } from "astro:content";
const riddles = await getEntryBySlug("riddles", "-index");
const { Content } = await riddles.render();
const { title, meta_title } = riddles.data;
---

<Base
title={title}
meta_title={meta_title}
>
<PageHeader title={title} />
<section class="section-sm">
<div class="container">
<div class="row justify-center">
<div class="col-10">
<div class="content">
<Content />
</div>
</div>
</div>
</div>
</section>
</Base>
1 change: 0 additions & 1 deletion src/pages/terms.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
import Base from "@/layouts/Base.astro";
import PageHeader from "@/partials/PageHeader.astro";
import { markdownify } from "@/lib/utils/textConverter";
import { getEntryBySlug } from "astro:content";
const terms = await getEntryBySlug("terms", "-index");
Expand Down

0 comments on commit 5b081de

Please sign in to comment.