summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-04-24 11:15:04 -0400
committerSam Anthony <sam@samanthony.xyz>2026-04-24 11:15:04 -0400
commit544ced362819ae9bd2abd9c12480f76945b368aa (patch)
tree84695604c33c6266a65d63759e3474c9bd87892e /Makefile
parent8dfec6a37d8adb55d500df1866901e3ee0d3c067 (diff)
downloadsamanthony.xyz-544ced362819ae9bd2abd9c12480f76945b368aa.zip
format htmlHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1f2850c..b4f36a2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,11 @@
-MODS = themes/aoidh static/resume
+MODS = $(shell git submodule | awk '{print $$2}')
-build: ${MODS} static/resume.png
+build: fmt ${MODS} static/resume.png
hugo build
+ find public -name '*.html' -exec tidy -mqi {} \;
+
+fmt:
+ gotmplfmt -w .
publish: build
rsync -rz --delete public/ samanthony.xyz:/var/www/htdocs/samanthony.xyz/
@@ -20,3 +24,5 @@ static/resume.png: static/resume.pdf
${MODS}:
git submodule update --init --recursive
+
+.PHONY: build fmt publish serve clean