[feat] update roam publish function
This commit is contained in:
parent
1d81f912f6
commit
db66ef7dc1
2 changed files with 14 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue