diff --git a/src/components/Post.astro b/src/components/Post.astro index 96a5fa9..cf49aea 100644 --- a/src/components/Post.astro +++ b/src/components/Post.astro @@ -24,6 +24,12 @@ switch (componentType) { default: break; } + +const postDateFormatted = post.data.date.toLocaleDateString("tr-TR", { + day: "numeric", + month: "long", + year: "numeric", +}); ---
-

{post.data.subcategory}

-

{post.data.title}

- {shortSummary &&

{post.data.summary}

} -
- { - showTags && ( - - ) - } - -
+ +

{post.data.title}

+ {shortSummary &&

{post.data.summary}

} +
{ - post.data.date.toLocaleDateString("tr-TR", { - day: "numeric", - month: "long", - year: "numeric", - }) + showTags && ( +
+ + + +
    + {post.data.tags.map((tag) => ( +
  • {tag}
  • + ))} +
+
+ ) } -

+ +
+ +
    +

    {postDateFormatted}

    +
+
+
- {longSummary &&

{post.body.slice(0, 500)}

} + { + longSummary && ( + <> +

{post.body.slice(0, 500)}

+ {post.body.length > 500 && ( + + Devamını Oku + + )} + + ) + } {fullText &&

{post.body}

}