diff --git a/content/posts/2021-07-27-procedural-meshes.org b/content/posts/2021-07-27-procedural-meshes/index.org similarity index 100% rename from content/posts/2021-07-27-procedural-meshes.org rename to content/posts/2021-07-27-procedural-meshes/index.org diff --git a/copy_log.sh b/copy_log.sh index 0406735..d93c901 100755 --- a/copy_log.sh +++ b/copy_log.sh @@ -4,3 +4,5 @@ emacs -q --batch -l util.el -f filter-org echo "Calling org_fix_links.py..." ./org_fix_links.py < ./_tmp_filtered.org > ./_tmp_filtered2.org emacs -q --batch -l util.el -f export-run + +#sed -i -e "s/^- /- /g" log.md diff --git a/util.el b/util.el index d8fc30b..706f4f1 100644 --- a/util.el +++ b/util.el @@ -67,3 +67,12 @@ (write-file "./log.md")) ;; TODO: use command-line-args so that I can pass in the filename ;; instead of hard-code it + +(defun export-all-run () + (let* ((fname "/mnt/share/syncthing/notes/log_pub.org")) + (princ (format "Open %s...\n" fname)) + (find-file fname) + (princ "Export with ox-hugo...\n") + (org-hugo-export-wim-to-md :all-subtrees))) +;; TODO: use command-line-args so that I can pass in the filename +;; instead of hard-code it