feat: check that Chroma theme exists

Also renames global Chroma theme variables to:

site.Params.features.syntax_highlighter.theme_light
site.Params.features.syntax_highlighter.theme_dark
This commit is contained in:
Geo 2022-05-19 17:05:41 +01:00
commit 50de7bd87e
5 changed files with 47 additions and 35 deletions

View file

@ -2,5 +2,5 @@
HUGOxPARAMSxCMSxLOCAL_BACKEND=true \
HUGO_MODULE_REPLACEMENTS="github.com/wowchemy/wowchemy-hugo-modules/wowchemy/v5 -> ../../../wowchemy,github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms/v5 -> ../../../wowchemy-cms" \
hugo server --renderStaticToDisk -F --port 80 --bind 0.0.0.0 \
hugo server --panicOnWarning --renderStaticToDisk -F --port 80 --bind 0.0.0.0 \
--source "starters/$1"

View file

@ -1,5 +1,5 @@
#!/usr/bin/env zsh
HUGOxPARAMSxCMSxLOCAL_BACKEND=true \
hugo server --renderStaticToDisk -F --port 80 --bind 0.0.0.0 \
hugo server --panicOnWarning --renderStaticToDisk -F --port 80 --bind 0.0.0.0 \
--source "starters/$1"