alexpearce / home

a blag.
https://alexpearce.me
MIT License
23 stars 2 forks source link
astro blog nix nix-flake static-site

Blog

This is the source for my blog.

It uses Astro to generate a static site which is deployed and served by Netlify.

Comment threads are made as GitHub issues. You can comment directly on the site at the bottom of each post, or on an existing issue on GitHub if one exists.

Building

I use Nix to manage development dependencies, as specified in the flake.nix flake. If you have Nix and direnv installed, run direnv allow to enable automatic activation of the development environment. Otherwise, having access to a a recent npm will suffice.

To work with the project:

# Install dependencies.
npm install
# Generate the static site under `dist/`.
npm run build
# Run linting and type checks.
npm run check
# Start a live-reloading development server.
npm run dev