|
||
---|---|---|
assets | ||
content/posts | ||
.envrc | ||
.gitattributes | ||
.gitignore | ||
README.md | ||
flake.lock | ||
flake.nix | ||
index.janet | ||
lockfile.jdn | ||
project.janet | ||
utils.janet | ||
views.janet |
README.md
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
The build output is in site
, you can upload that to wherever static files are served from.
Starting a netrepl
from within bagatto
When running bagatto with the --repl
flag, you can start a netrepl
which Conjure can connect to:
(def env (curenv))
(def t (thread/new (fn [_] (netrepl/server "127.0.0.1" 9365 env))))
All the bagatto functions like eval-data
and eval-site
are available in the netrepl session as well. A static site generator from your repl! 🔥
Continuously rebuild the site on changes
Easy as π! Use entr
, which is included in the development environment:
while sleep 0.5s; fd | entr -d sh -c 'bag index.janet'; end