From 3f2f9cebeecb0a28f1333bf39098801295729a40 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sun, 21 Nov 2021 02:36:11 +0000 Subject: [PATCH] Add site/ scripts --- site/bin/update-data.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 site/bin/update-data.sh diff --git a/site/bin/update-data.sh b/site/bin/update-data.sh new file mode 100644 index 0000000..1773ac3 --- /dev/null +++ b/site/bin/update-data.sh @@ -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.