commit
Update blog
diff --git a/deno.lock b/deno.lock
index 651a01f..bad22b6 100644
--- a/deno.lock
+++ b/deno.lock
@@ -1,6 +1,7 @@
{
"version": "5",
"specifiers": {
+ "jsr:@deno/installer-shell-setup@*": "0.3.4",
"npm:@eslint/js@^10.0.1": "[email protected]",
"npm:@giscus/svelte@^3.1.0": "[email protected]",
"npm:@iconify-json/ic@^1.2.4": "1.2.4",
@@ -23,6 +24,11 @@
"npm:vite@^8.3.6": "8.3.6_@[email protected][email protected]",
"npm:yaml@^2.9.1": "2.9.1"
},
+ "jsr": {
+ "@deno/[email protected]": {
+ "integrity": "48665d1a737d487cce6874bc97bba70a5aeffa7053aca3f60df93c6fab8963b4"
+ }
+ },
"npm": {
"@antfu/[email protected]": {
"integrity": "sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==",
diff --git a/src/lib/components/BlogPost.svelte b/src/lib/components/BlogPost.svelte
index 87483db..e5a7423 100644
--- a/src/lib/components/BlogPost.svelte
+++ b/src/lib/components/BlogPost.svelte
@@ -10,6 +10,7 @@
import IcWarningAmber from '~icons/ic/outline-warning-amber';
import IcInfo from '~icons/ic/outline-info';
import { fmtPostDate, type PostMeta } from '#lib/scripts/blog.ts';
+ import { headingAnchors } from '#lib/scripts/headingAnchors.ts';
import '#lib/styles/blog.css';
let { meta, children }: { meta: PostMeta; children: Snippet } = $props();
@@ -30,6 +31,13 @@
<time datetime={meta.date}>{fmtPostDate(meta.date)}</time>
<span aria-hidden="true">·</span>
<span>{meta.user}</span>
+ {#if meta.updated}
+ <span aria-hidden="true">·</span>
+ <span>
+ Last updated
+ <time datetime={meta.updated}>{fmtPostDate(meta.updated)}</time>
+ </span>
+ {/if}
</p>
{#if meta.tags.length}
<ul class="post-tags">
@@ -64,7 +72,7 @@
</div>
{/if}
- <article class="post-body">
+ <article class="post-body" use:headingAnchors>
{@render children()}
</article>
{/if}
diff --git a/src/lib/scripts/blog.ts b/src/lib/scripts/blog.ts
index fcf3c55..9f22ca0 100644
--- a/src/lib/scripts/blog.ts
+++ b/src/lib/scripts/blog.ts
@@ -9,6 +9,8 @@ export interface PostMeta {
excerpt: string;
// YYYY-MM-DD
date: string;
+ // YYYY-MM-DD, set when a post is edited after it went up
+ updated?: string;
user: string;
tags: string[];
// Content warning shown before the post, which stays hidden until the reader chooses to continue
diff --git a/src/lib/scripts/headingAnchors.ts b/src/lib/scripts/headingAnchors.ts
new file mode 100644
index 0000000..25d5ee6
--- /dev/null
+++ b/src/lib/scripts/headingAnchors.ts
@@ -0,0 +1,76 @@
+/* src/lib/scripts/headingAnchors.ts
+ * DASL-1.2 — (c) Clove Twilight
+ */
+
+import { mount, unmount } from 'svelte';
+import IcLink from '~icons/ic/outline-link';
+
+// "Update: I Think I Kinda Fell…" → "update-i-think-i-kinda-fell"
+function slugify(text: string): string {
+ return text
+ .toLowerCase()
+ .normalize('NFKD')
+ .replace(/[\u0300-\u036f]/g, '')
+ .replace(/[^a-z0-9]+/g, '-')
+ .replace(/^-+|-+$/g, '');
+}
+
+// Gives each h2/h3 in a post an id and a hover link to it, so sections can be shared
+export function headingAnchors(container: HTMLElement) {
+ const usedIds = new Set<string>();
+ const mountedIcons: ReturnType<typeof mount>[] = [];
+ const addedLinks: HTMLAnchorElement[] = [];
+
+ for (const heading of container.querySelectorAll<HTMLHeadingElement>('h2, h3')) {
+ const headingText = heading.textContent?.trim() ?? '';
+ const baseId = heading.id || slugify(headingText) || 'section';
+
+ // Two headings with the same text get -2, -3 and so on
+ let uniqueId = baseId;
+ let suffix = 2;
+
+ while (usedIds.has(uniqueId)) {
+ uniqueId = `${baseId}-${suffix}`;
+ suffix += 1;
+ }
+
+ usedIds.add(uniqueId);
+ heading.id = uniqueId;
+
+ const link = document.createElement('a');
+ link.className = 'heading-anchor';
+ link.href = `#${uniqueId}`;
+ link.setAttribute('aria-label', `Link to section: ${headingText}`);
+
+ mountedIcons.push(
+ mount(IcLink, {
+ target: link,
+ props: {
+ 'aria-hidden': 'true'
+ }
+ })
+ );
+
+ heading.append(link);
+ addedLinks.push(link);
+ }
+
+ // The ids only exist after hydration, so the browser's own jump-to-hash on load misses them
+ const targetId = decodeURIComponent(location.hash.slice(1));
+
+ if (targetId) {
+ document.getElementById(targetId)?.scrollIntoView();
+ }
+
+ return {
+ destroy() {
+ for (const icon of mountedIcons) {
+ unmount(icon);
+ }
+
+ for (const link of addedLinks) {
+ link.remove();
+ }
+ }
+ };
+}
diff --git a/src/lib/styles/blog.css b/src/lib/styles/blog.css
index afdf3ea..07db0a9 100644
--- a/src/lib/styles/blog.css
+++ b/src/lib/styles/blog.css
@@ -180,6 +180,39 @@
letter-spacing: -0.02em;
}
+.post-body h2,
+.post-body h3 {
+ scroll-margin-top: 1.5rem;
+}
+
+/* Link icon added next to each heading by headingAnchors.ts */
+.post-body .heading-anchor {
+ display: inline-flex;
+ margin-left: 0.4em;
+ vertical-align: middle;
+ color: var(--muted);
+ font-size: 0.75em;
+ opacity: 0;
+ transition: opacity 0.15s;
+}
+
+.post-body h2:hover .heading-anchor,
+.post-body h3:hover .heading-anchor,
+.post-body .heading-anchor:focus-visible {
+ opacity: 1;
+}
+
+.post-body .heading-anchor:hover {
+ color: var(--accent);
+}
+
+/* Touch screens can't hover, so the icon stays faintly visible there */
+@media (hover: none) {
+ .post-body .heading-anchor {
+ opacity: 0.6;
+ }
+}
+
.post-body p {
margin: 0 0 1.25rem;
}
diff --git a/src/routes/blog/+page.svelte b/src/routes/blog/+page.svelte
index ee18945..257049d 100644
--- a/src/routes/blog/+page.svelte
+++ b/src/routes/blog/+page.svelte
@@ -32,6 +32,13 @@
<time datetime={post.date}>{fmtPostDate(post.date)}</time>
<span aria-hidden="true">·</span>
<span>{post.user}</span>
+ {#if post.updated}
+ <span aria-hidden="true">·</span>
+ <span>
+ Updated
+ <time datetime={post.updated}>{fmtPostDate(post.updated)}</time>
+ </span>
+ {/if}
</span>
<span class="post-card-excerpt">{post.excerpt}</span>
<span class="post-tags">
diff --git a/src/routes/blog/arch-btw/+page.svelte b/src/routes/blog/arch-btw/+page.svelte
index 20c1273..c82cebb 100644
--- a/src/routes/blog/arch-btw/+page.svelte
+++ b/src/routes/blog/arch-btw/+page.svelte
@@ -8,8 +8,9 @@
export const metadata: PostMeta = {
title: 'I Use Arch, BTW (But Artix Is Better)',
excerpt:
- 'Ubuntu, Debian, Fedora, EndeavourOS, NixOS, and finally Arch. Why it stuck, and why I think Artix does it even better.',
+ 'Ubuntu, Debian, Fedora, EndeavourOS, NixOS, and finally Arch. Why it stuck, why I think Artix does it even better, and how Void Linux snuck up on me.',
date: '2026-11-05',
+ updated: '2026-11-08',
user: 'Clove',
tags: ['Linux', 'Personal', 'Tooling']
};
@@ -172,6 +173,81 @@ exec my-app serve</code
bit I care about most.
</p>
+ <h2>Update: I Think I Kinda Fell in Love with Void</h2>
+
+ <p>
+ Okay, so, plot twist number two. Since writing this, I've been experimenting with
+ <a href="https://voidlinux.org" rel="noopener noreferrer" target="_blank">Void Linux</a>. It
+ was only meant to be an experiment. Instead, I've gotten way more attached to it than I
+ expected. In my own words, at the time: "I think I kinda fell in love with Void tho... it just
+ works."
+ </p>
+
+ <p>
+ And that's honestly the biggest thing. Once it's properly configured, Void has been surprisingly
+ straightforward and reliable. It just works.
+ </p>
+
+ <h3>runit, Again</h3>
+
+ <p>
+ If you read the Artix bit above, you already know how I feel about runit. Void uses runit out of
+ the box instead of systemd, so it's the same lightweight, simple setup: services are scripts,
+ and I get direct control over them without a pile of extra complexity on top. It felt like
+ coming home.
+ </p>
+
+ <h3>XBPS</h3>
+
+ <p>
+ Void has its own package manager, XBPS, and I really like it. It's fast, light and fairly
+ straightforward. Between <code>xbps-install</code>, <code>xbps-query</code> and the rest of the
+ <code>xbps-*</code> tools, it's just been a pleasant thing to use.
+ </p>
+
+ <h3>Building It by Hand</h3>
+
+ <p>
+ Remember how I said I don't know how to do a manual Artix install yet? Well, with Void I've been
+ doing everything by hand, and I genuinely love it. No graphical installer holding my hand. I
+ start with a minimal base and build exactly the system I want, without packages or services I
+ didn't ask for.
+ </p>
+
+ <p>
+ That means I've been manually setting up partitions, filesystems, services, networking,
+ bootloaders, kernels and initramfs images. Turns out that's an amazing way to learn how Linux
+ actually works under the hood, and Void has been a great distro to learn and experiment on.
+ </p>
+
+ <p>
+ My current setup is a multi-boot with Void alongside Arch. Limine is the bootloader, each
+ distro gets its own root partition, and they both share one <code>/home</code> partition. So I
+ can hop between them and still have all my files and configs wherever I go. It's a little
+ chaotic, and I love it.
+ </p>
+
+ <p>
+ On the desktop side, I've been playing with SwayFX, including some custom configs. Void doesn't feel like it's trying to tell me how to use my computer. It's
+ lightweight, it's uncluttered, and I get to pick the services, the apps and what my desktop
+ looks and feels like.
+ </p>
+
+ <h3>It's Not Flawless</h3>
+
+ <p>
+ I'm not going to pretend it's all been smooth. I've had DNS issues, networking problems,
+ services that wouldn't behave, and yes, a kernel panic. But honestly? Getting all of that
+ working has been really satisfying, and I've learned a lot from it. Breaking things and fixing
+ them is half the fun.
+ </p>
+
+ <p>
+ None of this means Void is objectively better than Arch, Artix or anything else. It's just the
+ one that's clicked for me right now. Who knows where I'll be next month, but right now, Void has
+ my heart.
+ </p>
+
<h2>So, Which Distro Should You Use?</h2>
<p>Whichever one has trade-offs you're happy to live with. Roughly:</p>
@@ -195,6 +271,10 @@ exec my-app serve</code
<li>
<strong>Artix</strong> if you want all of that, without systemd.
</li>
+ <li>
+ <strong>Void</strong> if you want runit out of the box, a minimal base, and you actually enjoy
+ building your system by hand.
+ </li>
</ul>
<p>