[feat] update roam publish function

This commit is contained in:
SouthFox 2024-06-17 23:39:33 +08:00
parent 1d81f912f6
commit db66ef7dc1
2 changed files with 14 additions and 2 deletions

View file

@ -146,9 +146,15 @@
(defun my/org-roam-publish ()
"Publish current file"
(interactive)
(org-roam-update-org-id-locations)
(org-roam-set-keyword "filetags" ":publish:")
(save-buffer)
(org-hugo-export-wim-to-md))
(org-hugo-export-wim-to-md)
(shell-command (concat "cd " org-hugo-base-dir
" && " "git add ."
" && " "git commit -m '[post] new post'"
" && " "git push"))
(message "publish nwe post!"))
(defun my/org-roam-creat-node ()
"creat node and add IS_NODE property"

View file

@ -202,9 +202,15 @@
(defun my/org-roam-publish ()
"Publish current file"
(interactive)
(org-roam-update-org-id-locations)
(org-roam-set-keyword "filetags" ":publish:")
(save-buffer)
(org-hugo-export-wim-to-md))
(org-hugo-export-wim-to-md)
(shell-command (concat "cd " org-hugo-base-dir
" && " "git add ."
" && " "git commit -m '[post] new post'"
" && " "git push"))
(message "publish nwe post!"))
(defun my/org-roam-creat-node ()
"creat node and add IS_NODE property"