Hello, engineering blog
Why the site moved to Astro and EmDash, and what a post with code looks like.
· Anviksara Engineering
This is the first post on the Anviksara engineering blog. The site runs on Astro with EmDash as the CMS, on Cloudflare Workers.
Code blocks
Code is highlighted on the server with Shiki and follows the site's light or dark theme. Inline code like getEmDashEntry() works too.
import { getEmDashEntry } from 'emdash';
const { entry: post, error } = await getEmDashEntry('posts', slug);
if (error) throw error;
if (!post) return Astro.rewrite('/404');