summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteph Enders <steph@senders.io>2023-06-25 14:35:20 -0400
committerSteph Enders <steph@senders.io>2023-06-25 14:35:20 -0400
commitd770c63f5949893a14109baad73c9f596caadaf3 (patch)
treed82612707cebf1bd0ea928c772e3711f1b53deb1
parentb79e3ddd29df9ef7e2a6bd94c853a2dfd49a3331 (diff)
Add tidy to the make command
Update our make script to also tidy the files to ensure we've properly formatted any files. While ideally we format the actual .html files in our entries tidy will amend some missing structures so having it only run on the output will ensure things like & and ' < > etc will be encoded properly
-rwxr-xr-xmake.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/make.sh b/make.sh
index 6ad78ee..8698520 100755
--- a/make.sh
+++ b/make.sh
@@ -1,5 +1,9 @@
+# Render pages
./render.sh entries/index.html www/index.html
./render.sh entries/error.html www/error.html
-
+# copy static files
cp -r static/* www
+
+# tidy the HTML (this will resolve some common mistakes like & and ' etc
+./tidy.sh