Skip to content

Commit

Permalink
Merge pull request #10 from reednel/develop
Browse files Browse the repository at this point in the history
repair categories and tags
  • Loading branch information
Reed Nelson authored Aug 10, 2023
2 parents da1abe8 + 038ec24 commit b62364a
Show file tree
Hide file tree
Showing 36 changed files with 95 additions and 298 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/no-search-found.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
26 changes: 10 additions & 16 deletions src/layouts/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,24 +90,9 @@ const Search = ({ searchList }: Props) => {
</div>
</div>
</div>

{/* {inputVal.length > 1 && (
<div className="mt-8">
Found {searchResults?.length}
{searchResults?.length && searchResults?.length === 1
? " result"
: " results"}{" "}
for '{inputVal}'
</div>
)} */}
<div className="row">
{searchResults?.length < 1 ? (
<div className="mx-auto pt-5 text-center">
<img
className="mx-auto mb-6"
src="/images/no-search-found.png"
alt="no-search-found"
/>
<h1 className="h2 mb-4">
{inputVal.length < 1 ? "Search Post Here" : "No Search Found!"}
</h1>
Expand Down Expand Up @@ -147,7 +132,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 All @@ -171,6 +156,15 @@ const Search = ({ searchList }: Props) => {
))
)}
</div>
{/* {inputVal.length > 1 && (
<div className="mt-4 mx-auto text-center">
Found {searchResults?.length}
{searchResults?.length && searchResults?.length === 1
? " result"
: " results"}{" "}
for '{inputVal}'
</div>
)} */}
</div>
</section>
);
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
Loading

0 comments on commit b62364a

Please sign in to comment.