Compare commits
2 commits
db66ef7dc1
...
5b083590ee
Author | SHA1 | Date | |
---|---|---|---|
5b083590ee | |||
e080da4b94 |
2 changed files with 16 additions and 16 deletions
12
config.el
12
config.el
|
@ -93,7 +93,7 @@
|
||||||
:unnarrowed t)
|
:unnarrowed t)
|
||||||
("a" "article" plain "%?"
|
("a" "article" plain "%?"
|
||||||
:if-new
|
:if-new
|
||||||
(file+head "articles/%<%Y%m%d%H%M%S>-${title}.org" "#+title: ${title}\n#+date: %T\n#+filetags: :article: :publish:\n#+hugo_auto_set_lastmod: t\n#+hugo_section: articles\n")
|
(file+head "articles/%<%Y%m%d%H%M%S>-${title}.org" "#+title: ${title}\n#+date: %T\n#+filetags: :article:\n#+hugo_auto_set_lastmod: t\n#+hugo_section: articles\n")
|
||||||
:immediate-finish t
|
:immediate-finish t
|
||||||
:unnarrowed t)))
|
:unnarrowed t)))
|
||||||
|
|
||||||
|
@ -101,9 +101,7 @@
|
||||||
'(("d" "default" entry
|
'(("d" "default" entry
|
||||||
"* %?"
|
"* %?"
|
||||||
:target (file+head "%<%Y-%m-%d>.org"
|
:target (file+head "%<%Y-%m-%d>.org"
|
||||||
":PROPERTIES:
|
"#+title: %<%Y-%m-%d>\n#+date: %T\n#+hugo_auto_set_lastmod: t\n#+hugo_section: daily\n"))))
|
||||||
:header-args: :exports both\n:END:
|
|
||||||
#+title: %<%Y-%m-%d>\n#+date: %T\n#+hugo_auto_set_lastmod: t\n#+hugo_section: daily\n"))))
|
|
||||||
|
|
||||||
(use-package! websocket
|
(use-package! websocket
|
||||||
:after org-roam)
|
:after org-roam)
|
||||||
|
@ -150,10 +148,12 @@
|
||||||
(org-roam-set-keyword "filetags" ":publish:")
|
(org-roam-set-keyword "filetags" ":publish:")
|
||||||
(save-buffer)
|
(save-buffer)
|
||||||
(org-hugo-export-wim-to-md)
|
(org-hugo-export-wim-to-md)
|
||||||
(shell-command (concat "cd " org-hugo-base-dir
|
(async-shell-command (concat
|
||||||
|
"cd " org-hugo-base-dir
|
||||||
" && " "git add ."
|
" && " "git add ."
|
||||||
" && " "git commit -m '[post] new post'"
|
" && " "git commit -m '[post] new post'"
|
||||||
" && " "git push"))
|
(if (yes-or-no-p "Push now?")
|
||||||
|
(" && " "git push"))) "*Messages*")
|
||||||
(message "publish nwe post!"))
|
(message "publish nwe post!"))
|
||||||
|
|
||||||
(defun my/org-roam-creat-node ()
|
(defun my/org-roam-creat-node ()
|
||||||
|
|
12
config.org
12
config.org
|
@ -132,7 +132,7 @@
|
||||||
:unnarrowed t)
|
:unnarrowed t)
|
||||||
("a" "article" plain "%?"
|
("a" "article" plain "%?"
|
||||||
:if-new
|
:if-new
|
||||||
(file+head "articles/%<%Y%m%d%H%M%S>-${title}.org" "#+title: ${title}\n#+date: %T\n#+filetags: :article: :publish:\n#+hugo_auto_set_lastmod: t\n#+hugo_section: articles\n")
|
(file+head "articles/%<%Y%m%d%H%M%S>-${title}.org" "#+title: ${title}\n#+date: %T\n#+filetags: :article:\n#+hugo_auto_set_lastmod: t\n#+hugo_section: articles\n")
|
||||||
:immediate-finish t
|
:immediate-finish t
|
||||||
:unnarrowed t)))
|
:unnarrowed t)))
|
||||||
|
|
||||||
|
@ -140,9 +140,7 @@
|
||||||
'(("d" "default" entry
|
'(("d" "default" entry
|
||||||
"* %?"
|
"* %?"
|
||||||
:target (file+head "%<%Y-%m-%d>.org"
|
:target (file+head "%<%Y-%m-%d>.org"
|
||||||
":PROPERTIES:
|
"#+title: %<%Y-%m-%d>\n#+date: %T\n#+hugo_auto_set_lastmod: t\n#+hugo_section: daily\n"))))
|
||||||
:header-args: :exports both\n:END:
|
|
||||||
#+title: %<%Y-%m-%d>\n#+date: %T\n#+hugo_auto_set_lastmod: t\n#+hugo_section: daily\n"))))
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** org-roam-ui
|
** org-roam-ui
|
||||||
|
@ -206,10 +204,12 @@
|
||||||
(org-roam-set-keyword "filetags" ":publish:")
|
(org-roam-set-keyword "filetags" ":publish:")
|
||||||
(save-buffer)
|
(save-buffer)
|
||||||
(org-hugo-export-wim-to-md)
|
(org-hugo-export-wim-to-md)
|
||||||
(shell-command (concat "cd " org-hugo-base-dir
|
(async-shell-command (concat
|
||||||
|
"cd " org-hugo-base-dir
|
||||||
" && " "git add ."
|
" && " "git add ."
|
||||||
" && " "git commit -m '[post] new post'"
|
" && " "git commit -m '[post] new post'"
|
||||||
" && " "git push"))
|
(if (yes-or-no-p "Push now?")
|
||||||
|
(" && " "git push"))) "*Messages*")
|
||||||
(message "publish nwe post!"))
|
(message "publish nwe post!"))
|
||||||
|
|
||||||
(defun my/org-roam-creat-node ()
|
(defun my/org-roam-creat-node ()
|
||||||
|
|
Loading…
Reference in a new issue