diff --git a/package.json b/package.json index a977c5e..a833ead 100644 --- a/package.json +++ b/package.json @@ -50,5 +50,6 @@ "unist-util-visit": "^4.1.2", "vite": "^4.1.4", "xterm": "4.18.0" - } + }, + "packageManager": "pnpm@9.5.0+sha1.8c155dc114e1689d18937974f6571e0ceee66f1d" } diff --git a/src/routes/api/posts.json/+server.js b/src/routes/api/posts.json/+server.js index 2aee1ca..36b7850 100644 --- a/src/routes/api/posts.json/+server.js +++ b/src/routes/api/posts.json/+server.js @@ -4,7 +4,7 @@ export async function GET(req) { const allPostFiles = import.meta.glob('../../posts/**/*.md'); - const allPosts = await Promise.all( + const allPosts = (await Promise.all( Object.entries(allPostFiles).map(async ([path, resolver]) => { const { metadata } = await resolver(); let postPath = path.slice(2, -3); @@ -14,7 +14,7 @@ export async function GET(req) { path: postPath, }; }) - ); + )).filter(t => !t.draft); allPosts.sort((a, b) => { return new Date(b.date) - new Date(a.date) diff --git a/src/routes/posts/+page.svelte b/src/routes/posts/+page.svelte index 9dc3f4b..0db4274 100644 --- a/src/routes/posts/+page.svelte +++ b/src/routes/posts/+page.svelte @@ -41,23 +41,17 @@
@@ -88,23 +80,6 @@ @apply w-2xl; } } - .tags { - @apply flex flex-wrap gap-2 mt-2 mb-3; - } - :global(.dark) .tag { - background: rgb(77, 77, 77); - } - .tag { - @apply rounded-full cursor-pointer select-none px-4 py-2; - background: rgb(173, 173, 173); - text-transform: capitalize; - } - :global(.dark) .tag.selected { - background: rgb(0, 108, 170); - } - .tag.selected { - background: rgb(0, 162, 255); - } h1 { @apply m-0 mb-1 p-0 font-bold text-3xl; } @@ -125,6 +100,9 @@ color: rgb(4, 192, 192) } .rss { - @apply pl-4; + @apply pl-4 text-sm; + } + .rss img { + @apply inline mr-1 w-4 h-4; } \ No newline at end of file diff --git a/src/routes/posts/homelab/+page.md b/src/routes/posts/homelab/+page.md index 601f7cc..58a718d 100644 --- a/src/routes/posts/homelab/+page.md +++ b/src/routes/posts/homelab/+page.md @@ -5,6 +5,7 @@ author: Daniel Bulant authorIcon: /logo.png categories: [programming, homelab] description: I had setuped my homelab quite a while ago, but I never wrote about it. So here it is. +draft: true --- I had setuped my homelab quite a while ago, but I never wrote about it.