something to know — a blog about .NET, Sitecore, AI, DevOps, and modern software development by Michael West.
Built with Astro 5, Tailwind CSS v4, and hosted on Cloudflare Pages.
Prerequisites: Bun
bun install
bun run devThe dev server runs at http://localhost:4321.
Note: The search page requires a production build to work. Run
bun run buildand thenbun run previewto test it locally.
Run the helper script from the repo root:
.\scripts\new-post.ps1It will prompt you for:
- Title — used as the heading and to generate the URL slug
- Tags — comma-separated (e.g.
sitecore, dotnet) - Description — one sentence for SEO and post cards
It creates the .md file in src/content/posts/, a matching image folder in public/images/posts/, and opens the file in VS Code.
---
title: "Your Post Title"
date: 2025-01-15
description: "One sentence summary shown in post cards and search results."
tags: ["sitecore", "dotnet"]
draft: false # set to true to hide from the public site
---- Take your screenshot (Win+Shift+S, Snipping Tool, ShareX, etc.)
- The image is now on your clipboard
- Run the helper script:
.\scripts\paste-image.ps1It will:
- Ask which post to attach the image to (defaults to the most recently modified post)
- Ask for a short description (used as the filename and alt text)
- Save the image to
public/images/posts/[post-slug]/descriptive-name.png - Print the Markdown embed string and copy it to your clipboard
Then just paste into your post:
Tags are defined in post frontmatter — no separate config needed. New tags appear automatically on the /tags page. Keep them lowercase with hyphens (e.g. sitecore-cli, dotnet, docker).
src/
content/posts/ <- Markdown blog posts
layouts/ <- BaseLayout, PostLayout
components/ <- Header, Footer, PostCard, TagPill, ThemeToggle
pages/ <- index, [slug], tags/, search, rss.xml, 404
styles/global.css <- Tailwind v4 import + base styles
public/
images/posts/ <- per-post image folders
favicon.svg
scripts/
new-post.ps1 <- create a new post
paste-image.ps1 <- paste clipboard image into a post
bun run build # builds to /dist, then runs Pagefind indexer
bun run preview # serves /dist locally at http://localhost:4321