From ac8ed66efc968c97db5bb685ee158334cf9a1c96 Mon Sep 17 00:00:00 2001 From: mat ess Date: Sun, 16 Oct 2022 20:50:18 -0400 Subject: [PATCH] Ignore unoptimized images --- config.toml | 3 +++ flake.nix | 2 ++ 2 files changed, 5 insertions(+) diff --git a/config.toml b/config.toml index 8b7cdca..cae7e0b 100644 --- a/config.toml +++ b/config.toml @@ -6,6 +6,9 @@ default_language = "en" compile_sass = true build_search_index = false generate_feed = true +ignored_content = [ + "**/_*.{png,svg}", # unoptimized images +] # theme is inlined # theme = "apollo" diff --git a/flake.nix b/flake.nix index 7e22f7f..46326eb 100644 --- a/flake.nix +++ b/flake.nix @@ -29,6 +29,8 @@ buildPhase = '' optimize-images zola build --drafts + # zola's ignored_content setting doesn't work in static/ + rm -rf public/image/_favicon.svg ''; installPhase = '' cp -r public $out