Update for Hugo blog
This commit is contained in:
1 parent
6eb036dc21
commit
8f121be23b
20 files changed
+40
-6683
No files matched your search
@@ -2,11 +2,11 @@
|
||||
|
||||
help:
|
||||
@echo "Usage: make <command>"
|
||||
@echo " hugo - Export the org files to the Hugo website (~/Sites/website)"
|
||||
@echo " hugo - Export the org files to the Hugo website (org-hugo-base-dir)"
|
||||
|
||||
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; \
|
||||
@files=$$(grep -rli --include='*.org' --exclude-dir=.git '^#+hugo_section:' . | sort); \
|
||||
if [ -z "$$files" ]; then echo "No Org file with #+hugo_section 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; \
|
||||
|
||||
Reference in new issue
Block a user