Move from Hugo to Zola

This commit is contained in:
Jan Kremer 2026-03-17 10:48:48 +01:00
parent aa8a58141d
commit 4c1aa547e1
No known key found for this signature in database
51 changed files with 353 additions and 563 deletions

View file

@ -1,5 +1,5 @@
{
description = "Jan Kremer blog";
description = "Blog von Jan Kremer";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
treefmt = {
@ -24,10 +24,9 @@
{
devShells = eachSystem (pkgs: {
default = pkgs.mkShell {
name = "Hugo website";
name = "Zola website";
buildInputs = with pkgs; [
go
hugo
zola
vscode-langservers-extracted
];
};
@ -50,7 +49,7 @@
program =
(pkgs.writeShellScript "build-website" ''
set -e
${pkgs.hugo}/bin/hugo --minify
${pkgs.zola}/bin/zola build --minify
'').outPath;
};
deploy = {
@ -63,7 +62,7 @@
program =
(pkgs.writeShellScript "deploy-website" ''
set -e
${pkgs.hugo}/bin/hugo --minify
${pkgs.zola}/bin/zola build --minify
cd public
git commit --all -m "Deploy"
git push