diff --git a/src/components/PostCard.astro b/src/components/PostCard.astro
index 56ed8c0..a7a7143 100644
--- a/src/components/PostCard.astro
+++ b/src/components/PostCard.astro
@@ -1,13 +1,12 @@
---
-import path from "node:path";
import type { CollectionEntry } from "astro:content";
+import path from "node:path";
import { Icon } from "astro-icon/components";
import I18nKey from "../i18n/i18nKey";
import { i18n } from "../i18n/translation";
import { getDir } from "../utils/url-utils";
-import PostMetadata from "./PostMeta.astro";
import ImageWrapper from "./misc/ImageWrapper.astro";
-import { umamiConfig } from "../config";
+import PostMetadata from "./PostMeta.astro";
interface Props {
class?: string;
@@ -17,7 +16,7 @@ interface Props {
published: Date;
updated?: Date;
tags: string[];
- category: string;
+ category: string | null;
image: string;
description: string;
draft: boolean;
@@ -35,8 +34,6 @@ const {
description,
style,
} = Astro.props;
-
-const isPinned = entry.data.pinned === true;
const className = Astro.props.class;
const hasCover = image !== undefined && image !== null && image !== "";
@@ -54,11 +51,6 @@ const { remarkPluginFrontmatter } = await entry.render();
before:w-1 before:h-5 before:rounded-md before:bg-[var(--primary)]
before:absolute before:top-[35px] before:left-[18px] before:hidden md:before:block
">
- {isPinned && (
-
-