From 5b083590ee31be8172f429328dd0a534eb13018d Mon Sep 17 00:00:00 2001 From: SouthFox Date: Wed, 19 Jun 2024 00:18:11 +0800 Subject: [PATCH] [feat] update roam templates --- config.el | 6 ++---- config.org | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/config.el b/config.el index 5d5b602..0a1e604 100644 --- a/config.el +++ b/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: :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 :unnarrowed t))) @@ -101,9 +101,7 @@ '(("d" "default" entry "* %?" :target (file+head "%<%Y-%m-%d>.org" - ":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")))) + "#+title: %<%Y-%m-%d>\n#+date: %T\n#+hugo_auto_set_lastmod: t\n#+hugo_section: daily\n")))) (use-package! websocket :after org-roam) diff --git a/config.org b/config.org index 81cb330..be011b5 100644 --- a/config.org +++ b/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: :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 :unnarrowed t))) @@ -140,9 +140,7 @@ '(("d" "default" entry "* %?" :target (file+head "%<%Y-%m-%d>.org" - ":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")))) + "#+title: %<%Y-%m-%d>\n#+date: %T\n#+hugo_auto_set_lastmod: t\n#+hugo_section: daily\n")))) #+end_src ** org-roam-ui