feat: add topic Life Journal

This commit is contained in:
DIYgod
2023-04-05 03:41:49 +01:00
parent 395b86be06
commit f4e080f461
9 changed files with 253 additions and 131 deletions
+2 -2
View File
@@ -87,10 +87,10 @@ const Post = ({
<span className="xlog-post-tags space-x-1 truncate min-w-0">
{post.metadata?.content?.tags
?.filter((tag) => tag !== "post" && tag !== "page")
.map((tag) => (
.map((tag, index) => (
<span
className="hover:text-zinc-600"
key={tag}
key={tag + index}
onClick={(e) => {
e.preventDefault()
router.push(`/tag/${tag}`)
+2 -2
View File
@@ -6,11 +6,11 @@ import { useRefCallback } from "@crossbell/util-hooks"
import { getSiteLink } from "~/lib/helpers"
import { Image } from "~/components/ui/Image"
import { useGetSites } from "~/queries/site"
import showcase from "../../../showcase.json"
import showcase from "../../../data/showcase.json"
import { CharacterFloatCard } from "~/components/common/CharacterFloatCard"
import { useAccountSites, useSubscribeToSites } from "~/queries/site"
import { useTranslation } from "next-i18next"
import topics from "../../../topics.json"
import topics from "../../../data/topics.json"
export function MainSidebar() {
const showcaseSites = useGetSites(showcase)