feat[website] Added cap template for website
This commit is contained in:
parent
d951d543ed
commit
476ab85aec
35
config.org
35
config.org
@ -339,19 +339,9 @@ In order for editorconfig to do its thing, indentation by the lsp must be disabl
|
||||
* Website
|
||||
** Capture template
|
||||
#+begin_src emacs-lisp
|
||||
;(setq templates/post-capture-props "#+date: [%<%Y-%m-%d %a>]\n#+lastmod:\n#+categories[]:\n#+tags[]:\n#+images[]: ")
|
||||
;(setq templates/post-capture-title "#+TITLE: ${title}\n")
|
||||
;(setq templates/post-capture-template (concat templates/post-capture-title templates/post-capture-props))
|
||||
#+end_src
|
||||
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(after! org-roam
|
||||
(add-to-list 'org-roam-capture-templates
|
||||
'("m" "Markdown" plain "" :target
|
||||
(file+head "training-resources/content/${title}.md"
|
||||
"---\ntitle: ${title}\nid: %<%Y-%m-%dT%H%M%S>\ncategory: \n---\n")
|
||||
:unnarrowed t)))
|
||||
(setq templates/post-capture-props "#+date: [%<%Y-%m-%d %a>]\n#+lastmod:\n#+categories[]:\n#+tags[]:\n#+images[]: ")
|
||||
(setq templates/post-capture-title "#+TITLE: ${title}\n")
|
||||
(setq templates/post-capture-template (concat templates/post-capture-title templates/post-capture-props))
|
||||
#+end_src
|
||||
|
||||
|
||||
@ -864,11 +854,10 @@ Adding up values for one key is supported."
|
||||
*** ox-extra for ":ignore:" tags
|
||||
I want to be able to ignore headings on export.
|
||||
#+begin_src emacs-lisp
|
||||
(after! org
|
||||
(use-package! ox-extra
|
||||
:after (org)
|
||||
:config
|
||||
(ox-extras-activate '(latex-header-blocks ignore-headlines)
|
||||
)))
|
||||
(ox-extras-activate '(latex-header-blocks ignore-headlines)))
|
||||
#+end_src
|
||||
*** Resume template
|
||||
#+begin_src emacs-lisp
|
||||
@ -992,10 +981,16 @@ We need to bring in the correct SSH agent values, so that Emacs is aware of wher
|
||||
** COMMENT Capture template for documentation
|
||||
#+begin_src emacs-lisp
|
||||
(add-to-list 'org-roam-capture-templates
|
||||
'("m" "Markdown" plain "" :target
|
||||
(file+head "training-resources/content/${title}.md"
|
||||
"---\ntitle: ${title}\nid: %<%Y-%m-%dT%H%M%S>\ncategory: \n---\n")
|
||||
:unnarrowed t))
|
||||
'("m" "Markdown" plain ""
|
||||
:target
|
||||
(file+head "training-resources/content/${title}.md"
|
||||
"---\ntitle: ${title}\nid: %<%Y-%m-%dT%H%M%S>\ncategory: \n---\n")
|
||||
:unnarrowed t)
|
||||
'("w" "Website" plain "%?"
|
||||
:target
|
||||
(file+head "website/src/posts/%<%Y%m%d-%H%M%S>.org"
|
||||
"#+TITLE: ${title}\n#+DRAFT: true\n")
|
||||
:unnarrowed t))
|
||||
#+end_src
|
||||
|
||||
* Funny Stuff
|
||||
|
BIN
cookies.txt
BIN
cookies.txt
Binary file not shown.
Loading…
Reference in New Issue
Block a user