update dev-runtime

This commit is contained in:
Yan Lin 2026-02-08 19:03:32 +01:00
parent 86e6349645
commit 4a553e0a15
3 changed files with 4 additions and 4 deletions

View file

@ -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
```

View file

@ -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" }

View file

@ -10,7 +10,7 @@
packages = with pkgs; [
zola
(writeShellScriptBin "serve" ''
zola serve --open
zola serve --open --drafts
'')
(writeShellScriptBin "build" ''
zola build