diff --git a/README.md b/README.md index 947db8a..30a81c4 100644 --- a/README.md +++ b/README.md @@ -43,9 +43,9 @@ Inserts table of contents where placed: ## Cloudflare Pages Deployment -To use a specific version of Zola, and to handle Cloudflare's distinction between preview and production builds: +To use a specific version of Zola, handle Cloudflare's distinction between preview and production builds, and include draft pages in preview builds: ```bash -curl -sL https://github.com/getzola/zola/releases/download/v0.22.1/zola-v0.22.1-x86_64-unknown-linux-gnu.tar.gz | tar xz && if [ "$CF_PAGES_BRANCH" = "main" ]; then ./zola build; else ./zola build --base-url $CF_PAGES_URL; fi +curl -sL https://github.com/getzola/zola/releases/download/v0.22.1/zola-v0.22.1-x86_64-unknown-linux-gnu.tar.gz | tar xz && if [ "$CF_PAGES_BRANCH" = "main" ]; then ./zola build; else ./zola build --drafts --base-url $CF_PAGES_URL; fi ``` diff --git a/config.toml b/config.toml index d339d78..dc9c2bc 100644 --- a/config.toml +++ b/config.toml @@ -6,7 +6,7 @@ compile_sass = true minify_html = false generate_feeds = true feed_filenames = ["rss.xml"] -ignored_content = ["*.svg", "*.gif", "*.drawio", "*.png", "*.jpg", "*.jpeg", "*.mp4", "*.mov", "*.mkv"] +ignored_content = ["*.heic", "*.svg", "*.gif", "*.drawio", "*.png", "*.jpg", "*.jpeg", "*.mp4", "*.mov", "*.mkv"] [markdown] highlighting = { light_theme = "gruvbox-light-hard", dark_theme = "gruvbox-dark-hard" } diff --git a/dev-runtime/flake.nix b/dev-runtime/flake.nix index b24be96..87a138a 100644 --- a/dev-runtime/flake.nix +++ b/dev-runtime/flake.nix @@ -10,7 +10,7 @@ packages = with pkgs; [ zola (writeShellScriptBin "serve" '' - zola serve --open + zola serve --open --drafts '') (writeShellScriptBin "build" '' zola build