From b3416915fd785f69e6566cbfc44ac146c0459786 Mon Sep 17 00:00:00 2001 From: randogoth Date: Sat, 7 Feb 2026 21:06:59 +0200 Subject: [PATCH] Use pelicanconf when present --- modules/services/static-sites/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/services/static-sites/default.nix b/modules/services/static-sites/default.nix index e30adc4..5de718f 100644 --- a/modules/services/static-sites/default.nix +++ b/modules/services/static-sites/default.nix @@ -26,7 +26,11 @@ let # Drop draft content before building (Pelican draft detection can be inconsistent). grep -RIl '^status:[[:space:]]*draft' content | xargs -r rm -f fi - ${pythonEnv}/bin/pelican content -o "$out" + if [ -f pelicanconf.py ]; then + ${pythonEnv}/bin/pelican content -o "$out" -s pelicanconf.py + else + ${pythonEnv}/bin/pelican content -o "$out" + fi runHook postBuild ''; installPhase = "true";