Hello, Terminal

Status: published

SetupAstro

Welcome to the first post.

Terminal workflow preview

This blog uses Astro + Markdown collections and a terminal-inspired theme.

Example code highlight

import { getCollection } from 'astro:content';

const allPosts = await getCollection('posts', ({ data }) => data.status === 'published');

const posts = allPosts.sort(
  (a, b) => b.data.pubDate.getTime() - a.data.pubDate.getTime()
);

// Highlight: newest published posts are rendered first on the home page.

Why this setup

  • Fast static pages
  • Content in markdown
  • Simple category browsing