Ignore unoptimized images

pull/1/head
mat ess 2022-10-16 20:50:18 -04:00
parent ab222f3ec0
commit ac8ed66efc
2 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,9 @@ default_language = "en"
compile_sass = true compile_sass = true
build_search_index = false build_search_index = false
generate_feed = true generate_feed = true
ignored_content = [
"**/_*.{png,svg}", # unoptimized images
]
# theme is inlined # theme is inlined
# theme = "apollo" # theme = "apollo"

View File

@ -29,6 +29,8 @@
buildPhase = '' buildPhase = ''
optimize-images optimize-images
zola build --drafts zola build --drafts
# zola's ignored_content setting doesn't work in static/
rm -rf public/image/_favicon.svg
''; '';
installPhase = '' installPhase = ''
cp -r public $out cp -r public $out