Update for the new hugo website

This commit is contained in:
2026-09-27 19:44:53 +02:00
parent 5399416bb3
commit 2ab6ae6a55
17 changed files with 1512 additions and 2280 deletions
+13
View File
@@ -0,0 +1,13 @@
.PHONY: help hugo
help:
@echo "Usage: make <command>"
@echo " hugo - Export the org files to the Hugo website (~/Sites/website)"
hugo:
@files=$$(grep -rli --include='*.org' --exclude-dir=.git '^#+hugo_base_dir:' . | sort); \
if [ -z "$$files" ]; then echo "No Org file with #+hugo_base_dir found"; exit 1; fi; \
for f in $$files; do \
echo "==> Exporting $$f"; \
emacsclient -e "(with-current-buffer (find-file-noselect \"$(CURDIR)/$${f#./}\") (org-hugo-export-wim-to-md))" > /dev/null || exit 1; \
done