Add Zola templates and browser-tested site scaffold
This commit is contained in:
parent
fd5fc944e6
commit
a33673243e
1 changed files with 2114 additions and 0 deletions
11
tests/render.sh
Normal file
11
tests/render.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
site_root=$(cd "$(dirname "$0")/.." && pwd)
|
||||
fixture=$(mktemp -d /tmp/home-check.XXXXXX)
|
||||
cp -a "$site_root/zola.toml" "$site_root/templates" "$site_root/content" "$site_root/static" "$fixture/"
|
||||
cp "$site_root/tests/specimen.md" "$fixture/content/blog/specimen.md"
|
||||
cp "$site_root/tests/listing.md" "$fixture/content/blog/listing.md"
|
||||
cp "$site_root/tests/thumbnail.jpg" "$fixture/static/thumbnail.jpg"
|
||||
zola --root "$fixture" build
|
||||
printf '%s\n' "$fixture/public"
|
||||
Loading…
Reference in a new issue