Compare commits
No commits in common. "5b083590ee31be8172f429328dd0a534eb13018d" and "db66ef7dc1c6a81fc4301895add31b9caec8254e" have entirely different histories.
5b083590ee
...
db66ef7dc1
2 changed files with 16 additions and 16 deletions
16
config.el
16
config.el
|
@ -93,7 +93,7 @@
|
|||
:unnarrowed t)
|
||||
("a" "article" plain "%?"
|
||||
:if-new
|
||||
(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")
|
||||
(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")
|
||||
:immediate-finish t
|
||||
:unnarrowed t)))
|
||||
|
||||
|
@ -101,7 +101,9 @@
|
|||
'(("d" "default" entry
|
||||
"* %?"
|
||||
:target (file+head "%<%Y-%m-%d>.org"
|
||||
"#+title: %<%Y-%m-%d>\n#+date: %T\n#+hugo_auto_set_lastmod: t\n#+hugo_section: daily\n"))))
|
||||
":PROPERTIES:
|
||||
: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
|
||||
:after org-roam)
|
||||
|
@ -148,12 +150,10 @@
|
|||
(org-roam-set-keyword "filetags" ":publish:")
|
||||
(save-buffer)
|
||||
(org-hugo-export-wim-to-md)
|
||||
(async-shell-command (concat
|
||||
"cd " org-hugo-base-dir
|
||||
" && " "git add ."
|
||||
" && " "git commit -m '[post] new post'"
|
||||
(if (yes-or-no-p "Push now?")
|
||||
(" && " "git push"))) "*Messages*")
|
||||
(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 ()
|
||||
|
|
16
config.org
16
config.org
|
@ -132,7 +132,7 @@
|
|||
:unnarrowed t)
|
||||
("a" "article" plain "%?"
|
||||
:if-new
|
||||
(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")
|
||||
(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")
|
||||
:immediate-finish t
|
||||
:unnarrowed t)))
|
||||
|
||||
|
@ -140,7 +140,9 @@
|
|||
'(("d" "default" entry
|
||||
"* %?"
|
||||
:target (file+head "%<%Y-%m-%d>.org"
|
||||
"#+title: %<%Y-%m-%d>\n#+date: %T\n#+hugo_auto_set_lastmod: t\n#+hugo_section: daily\n"))))
|
||||
":PROPERTIES:
|
||||
: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
|
||||
|
||||
** org-roam-ui
|
||||
|
@ -204,12 +206,10 @@
|
|||
(org-roam-set-keyword "filetags" ":publish:")
|
||||
(save-buffer)
|
||||
(org-hugo-export-wim-to-md)
|
||||
(async-shell-command (concat
|
||||
"cd " org-hugo-base-dir
|
||||
" && " "git add ."
|
||||
" && " "git commit -m '[post] new post'"
|
||||
(if (yes-or-no-p "Push now?")
|
||||
(" && " "git push"))) "*Messages*")
|
||||
(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 ()
|
||||
|
|
Loading…
Reference in a new issue