update dev-runtime
This commit is contained in:
parent
86e6349645
commit
4a553e0a15
3 changed files with 4 additions and 4 deletions
|
|
@ -43,9 +43,9 @@ Inserts table of contents where placed:
|
||||||
|
|
||||||
## Cloudflare Pages Deployment
|
## 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
|
```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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ compile_sass = true
|
||||||
minify_html = false
|
minify_html = false
|
||||||
generate_feeds = true
|
generate_feeds = true
|
||||||
feed_filenames = ["rss.xml"]
|
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]
|
[markdown]
|
||||||
highlighting = { light_theme = "gruvbox-light-hard", dark_theme = "gruvbox-dark-hard" }
|
highlighting = { light_theme = "gruvbox-light-hard", dark_theme = "gruvbox-dark-hard" }
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
zola
|
zola
|
||||||
(writeShellScriptBin "serve" ''
|
(writeShellScriptBin "serve" ''
|
||||||
zola serve --open
|
zola serve --open --drafts
|
||||||
'')
|
'')
|
||||||
(writeShellScriptBin "build" ''
|
(writeShellScriptBin "build" ''
|
||||||
zola build
|
zola build
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue