diff --git a/src/components/ui/buttons/Bookmark.astro b/src/components/ui/buttons/Bookmark.astro new file mode 100644 index 0000000..0c8ae2c --- /dev/null +++ b/src/components/ui/buttons/Bookmark.astro @@ -0,0 +1,104 @@ + + + diff --git a/src/pages/blog/[...slug].astro b/src/pages/blog/[...slug].astro index f9c80bf..a62d2c7 100644 --- a/src/pages/blog/[...slug].astro +++ b/src/pages/blog/[...slug].astro @@ -3,6 +3,9 @@ import MainLayout from "../../layouts/MainLayout.astro"; import AvatarBlogLarge from "../../components/ui/avatars/AvatarBlogLarge.astro"; import CardRelated from "../../components/ui/cards/CardRelated.astro"; +import Bookmark from "../../components/ui/buttons/Bookmark.astro"; +import SocialShare from "../../components/ui/buttons/SocialShare.astro"; +import PostFeedback from "../../components/ui/feedback/PostFeedback.astro"; import { Image } from "astro:assets"; import { capitalize, formatDate } from "../../utils/utils"; import { getCollection } from "astro:content"; @@ -27,7 +30,7 @@ const blogPosts: CollectionEntry<"blog">[] = await getCollection("blog"); // In a production site, you might want to implement a more robust algorithm, choosing related posts based on tags, categories, dates, authors, or keywords. // See example: https://blog.codybrunner.com/2024/adding-related-articles-with-astro-content-collections/ const relatedPosts: CollectionEntry<"blog">[] = blogPosts.filter( - (blogEntry) => blogEntry.slug !== post.slug, + (blogEntry) => blogEntry.slug !== post.slug ); --- @@ -94,22 +97,45 @@ const relatedPosts: CollectionEntry<"blog">[] = blogPosts.filter(

{content}

- ), + ) ) } - -
- { - post.data.tags?.map((tag: string) => ( - - {capitalize(tag)} - - )) - } +
+ +
+ { + post.data.tags?.map((tag: string, index) => ( + + {capitalize(tag)} + + )) + } +
+ +
+ +
+
+
+ +
+
+ +