diff --git a/src/pages/[lang]/posts/[...slug].astro b/src/pages/[lang]/posts/[...slug].astro index dfdf6ec..9162d30 100644 --- a/src/pages/[lang]/posts/[...slug].astro +++ b/src/pages/[lang]/posts/[...slug].astro @@ -34,7 +34,7 @@ const { Content } = await render(post)

{post.data.title}

-

+

{post.data.description}

@@ -50,7 +50,9 @@ const { Content } = await render(post) { post.data.tags.map((tag: string) => ( -

#{tag}

+

+ #{tag} +

)) } diff --git a/src/styles/global.css b/src/styles/global.css index 6fc41a7..9d75986 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -9,8 +9,14 @@ body { font-family: "JetBrains Mono Variable", monospace; } - -@layer base { h1 { font-size: var(--text-2xl); } h2 { font-size: var(--text-xl); }} +@layer base { + h1 { + font-size: var(--text-2xl); + } + h2 { + font-size: var(--text-xl); + } +} code { border-radius: 0.25rem; @@ -28,11 +34,11 @@ code::after { content: none !important; } -ol, ul { +ol, +ul { list-style-type: "- "; } - .nav-links, .markdown-link { text-decoration: none; @@ -51,7 +57,7 @@ ol, ul { display: inline-block; } -.nav-links:hover, .markdown-link:hover { +.nav-links:hover, +.markdown-link:hover { text-decoration: underline; } - diff --git a/src/utils/index.ts b/src/utils/index.ts index d83a509..d7d7bec 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -38,7 +38,10 @@ export const getPostsByLocale = async (locale: string) => { posts.forEach((post: any) => { post.data.lang = locale }) - const filtered = import.meta.env.MODE === 'development'? posts : posts.filter((p) => p.data.published) + const filtered = + import.meta.env.MODE === "development" + ? posts + : posts.filter((p) => p.data.published) return filtered.sort( (a: any, b: any) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf(), )