- SCSS 91%
- CSS 8.2%
- Nix 0.8%
| posts | ||
| .envrc | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| index.janet | ||
| lockfile.jdn | ||
| project.janet | ||
| README.md | ||
| views.janet | ||
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