Add site/ scripts

This commit is contained in:
Case Duckworth 2021-11-21 02:36:11 +00:00
parent f1521a7dbf
commit 3f2f9cebee
1 changed files with 19 additions and 0 deletions

19
site/bin/update-data.sh Normal file
View File

@ -0,0 +1,19 @@
#!/bin/sh
# update-data.sh - update "dynamic" data for zola
# adding functions:
# - write a function that outputs the data you want as toml to
# /bread/site/static/.
# - add that function to the main() function below.
# - comment a LOT!
main() {
# dispatcher function.
# this will run everything else.
}
# utilities
toml_output() { # toml_output FILE ARRAY_ITEMS
# stupid toml outputter.
# outputs ARRAY_ITEMS as a toml array to FILE.
# adds warning comment and stuff.