Skip to content

Commit

Permalink
repair categories and tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Reed Nelson committed Aug 8, 2023
1 parent 0915aeb commit 2c91508
Show file tree
Hide file tree
Showing 33 changed files with 78 additions and 279 deletions.
Binary file added public/assets/favicon.ico
Binary file not shown.
Binary file removed public/images/call-to-action.png
Binary file not shown.
Binary file removed public/images/favicon.png
Binary file not shown.
Binary file removed public/images/service-1.png
Binary file not shown.
Binary file removed public/images/service-2.png
Binary file not shown.
Binary file removed public/images/service-3.png
Binary file not shown.
10 changes: 5 additions & 5 deletions src/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@
"base_url": "https://reednel.com",
"base_path": "/",
"trailing_slash": false,
"favicon": "/images/favicon.png",
"favicon": "/assets/favicon.ico",
"logo": "/images/logo.png",
"logo_darkmode": "/images/logo-darkmode.png",
"logo_width": "150",
"logo_height": "30",
"logo_text": "Pages"
"logo_text": "rn"
},

"settings": {
"search": true,
"sticky_header": true,
"sticky_header": false,
"theme_switcher": true,
"default_theme": "system",
"pagination": 2,
"summary_length": 200,
"blog_folder": "blog",
"drink_folder": "drinks"
"drink_folder": "drink"
},

"metadata": {
"meta_author": "reednel",
"meta_image": "/images/og-image.png",
"meta_description": "astro and tailwind boilerplate"
"meta_description": "Reed Nelson's perosnal website"
}
}
4 changes: 2 additions & 2 deletions src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const blogCollection = defineCollection({
}),
});

// Drinks collection schema
// Drink collection schema
const drinkCollection = defineCollection({
schema: z.object({
title: z.string(),
Expand Down Expand Up @@ -67,7 +67,7 @@ const pagesCollection = defineCollection({
// Export collections
export const collections = {
blog: blogCollection,
drinks: drinkCollection,
drink: drinkCollection,
projects: projectCollection,
pages: pagesCollection,
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
256 changes: 0 additions & 256 deletions src/content/pages/elements.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion src/layouts/PostSingle.astro
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const { title, description, author, categories, image, date, tags } = post.data;
<FaRegFolder className={"mr-2 -mt-1 inline-block"} />
{
categories.map((category: string, index: number) => (
<a href={`/categories/${slugify(category)}`}>
<a href={`/blog/categories/${slugify(category)}`}>
{humanize(category)}
{index !== categories.length - 1 && ","}
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const Search = ({ searchList }: Props) => {
{item.data.categories.map(
(category: string, index: number) => (
<a
href={`/categories/${slugify(category)}`}
href={`/blog/categories/${slugify(category)}`}
key={category}
>
{humanize(category)}
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/components/BlogCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const { title, image, date, author, categories } = data.data;
<FaRegFolder className={"mr-2 -mt-1 inline-block"} />
{
categories.map((category: string, index: number) => (
<a href={`/categories/${slugify(category)}`}>
<a href={`/blog/categories/${slugify(category)}`}>
{humanize(category)}
{index !== categories.length - 1 && ","}
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/components/DrinkCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const { title, image, date, author, categories } = data.data;
<FaRegFolder className={"mr-2 -mt-1 inline-block"} />
{
categories.map((category: string, index: number) => (
<a href={`/categories/${slugify(category)}`}>
<a href={`/drink/categories/${slugify(category)}`}>
{humanize(category)}
{index !== categories.length - 1 && ","}
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const { tags, categories, allCategories } = Astro.props;
<li>
<a
class="flex justify-between hover:text-primary dark:hover:text-darkmode-primary"
href={`/categories/${category}`}
href={`/blog/categories/${category}`}
>
{humanize(category)} <span>({count})</span>
</a>
Expand All @@ -41,7 +41,7 @@ const { tags, categories, allCategories } = Astro.props;
<li class="inline-block">
<a
class="m-1 block rounded bg-white px-3 py-1 hover:bg-primary hover:text-white dark:bg-darkmode-body dark:hover:bg-darkmode-primary dark:hover:text-dark"
href={`/tags/${tag}`}
href={`blog/tags/${tag}`}
>
{humanize(tag)}
</a>
Expand Down
Loading

0 comments on commit 2c91508

Please sign in to comment.