Hugs is a very simplicitic static site generator specifically focused on making simple personal websites.
Hugs is currently not published anywhere, so you will have to have the Rust toolchain and then compile and install against the source code using cargo install.
git clone https://github.com/AndrewBastin/hugs
cd hugs
cargo install --path .If you use Nix to set up your website dev shell, you can something like the following with Nix flakes.
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
hugs.url = "github:AndrewBastin/hugs";
};
outputs = { self, nixpkgs, hugs }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
hugs' = hugs.packages.${system}.default;
in
{
# default package that builds your site
packages.default = pkgs.runCommand "my-site" {
nativeBuildInputs = [ hugs' ];
} ''
hugs build ${./.} -o $out
'';
# development shell
devShells.default = pkgs.mkShell {
packages = with pkgs; [
# Exposes the `hugs` command in your dev shell
hugs'
];
};
}
);
}Hugs is self documenting. The binary contains all the documentation about it. Run hugs --help to see your options.