From c61d9a9355ca4877ee1a83f57e040ec3352a46ba Mon Sep 17 00:00:00 2001 From: log101 Date: Tue, 16 Sep 2025 05:39:57 +0300 Subject: [PATCH] feat: kod stillerini ekle --- src/components/Post.astro | 17 ++------------ src/styles/main.css | 48 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 15 deletions(-) diff --git a/src/components/Post.astro b/src/components/Post.astro index dffc42b..733263c 100644 --- a/src/components/Post.astro +++ b/src/components/Post.astro @@ -75,26 +75,13 @@ import { getEntry } from "astro:content"; } -
+

{categoryTitles[0]?.data.name}

-

{post.data.title.rendered}

+

{post.data.title.rendered}

- { - options.showTags && post.data.tags?.length && ( -
- question mark -
    - {post.data.tags.map((tag) => ( -
  • {tag}
  • - ))} -
-
- ) - } -
calendar
    diff --git a/src/styles/main.css b/src/styles/main.css index 938bc54..b3954a7 100644 --- a/src/styles/main.css +++ b/src/styles/main.css @@ -43,3 +43,51 @@ video { font-family: "Source Code Pro", monospace; } } + +.shiki { + font-size: 16px; + line-height: 1rem; + padding: 18px; + border-radius: 8px; + margin-bottom: 16px; +} + +h3, +hr { + margin: 0.7em 0 0.5em 0; +} + +#full-text p { + margin: 0.5em 0 1.2em 0; +} + +figcaption { + color: gray; + text-align: center; + font-size: 0.9em; +} + +#toc > ul { + line-height: 2em; +} + +li a { + color: black; +} + +table { + border: 1px solid slategrey; + padding: 4px; + background-color: #f8f9fa; + margin: 0.5em 0 1.2em 0; +} + +th { + text-align: left; + white-space: nowrap; +} + +td { + text-align: left; + white-space: nowrap; +}