Ignore unoptimized images
parent
ab222f3ec0
commit
ac8ed66efc
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue