Live demos, and a sandbox for the CMS preview
Code blocks that run. svelte run makes the block a module the page imports; markdown/Pre.svelte draws its component above its code, in a region named "Live…
10 entries with this tag.
Code blocks that run. svelte run makes the block a module the page imports; markdown/Pre.svelte draws its component above its code, in a region named "Live…
Our own directives are an mdsvex plugin bundle (src/lib/markdown/directives-plugin.ts) with their components in src/lib/markdown/directives/: :kbd[Ctrl+B]…
A plain {expression} is allowed in posts again. It runs when the site is built and again in the reader's browser, and sees the frontmatter as metadata…
The CMS preview compiles each post in the browser the way the build does: mdsvex/compile with the build's options (src/lib/markdown/options.ts), then Svelte's…
An icon picker for the Awesome lists' icon: a Sveltia field type (lucide) whose control is a Svelte component (IconPicker.svelte), mounted from a small React…
The CMS now ships with the site: pnpm build also builds /portfolio/admin/. To sign in there with GitHub it needs a small server, Sveltia's authenticator…
Compared first: rendered all 262 posts and entries with svelte-markdown and diffed every block (text, inline tags, heading ids, links, images, code) against…
After svelte-markdown replaced mdsvex, I went through the CMS and asked of each piece whether it still earned its place. It went from 977 to 694 lines of code.
Compared three ways to get a CMS: build our own, Sveltia CMS or TinaCMS (design/cms-study.md). Tina was out: its images must live in static/, it has no…
Devlog timeline: three scroll-driven animations in Timeline.svelte. A brand line fills down each phase as the middle of the screen passes it, each entry is…