Previous shot at picking a static site generator for https://arnes.space
  • SCSS 91%
  • CSS 8.2%
  • Nix 0.8%
Find a file
2021-07-15 22:26:58 +02:00
posts Add markdown post rendering 2021-07-07 20:33:27 +02:00
.envrc Let there be light 2021-07-07 16:06:47 +02:00
.gitignore Let there be light 2021-07-07 16:06:47 +02:00
flake.lock Let there be light 2021-07-07 16:06:47 +02:00
flake.nix Add README with build instructions 2021-07-15 22:00:38 +02:00
index.janet Pattern generation for each site is working 2021-07-15 19:35:43 +02:00
lockfile.jdn Install via jpm deps 2021-07-07 21:08:27 +02:00
project.janet Install via jpm deps 2021-07-07 21:08:27 +02:00
README.md Add README with build instructions 2021-07-15 22:00:38 +02:00
views.janet Add favicon 2021-07-15 22:26:58 +02:00

arnes.space

The files in this repository contain the basis for https://arnes.space. The development environment is defined using the nix package manager. After you have installed it and enabled nix flakes you can install all dependencies required to build the static page using the following commands:

nix develop
jpm load-lockfile

Architecture

The site itself is built using bagatto, which is a static site generator using the janet programming language. The main entry point is index.janet and you can rebuild the website using the bagatto binary:

bag index.janet

There is some code that starts a networked repl when you add the --repl flag to the above command. This allows you to interactively evaluate parts of the website, which is very handy if you want to understand how it works or change some parts.

The build output is in site, you can upload that to wherever static files are served from.

Continuously rebuild the site on changes

Easy as π! Use entr, which is included in the development environment:

while true; fd | entr -d sh -c 'bag index.janet'; end