feat[website] Added cap template for website

This commit is contained in:
Judah Sotomayor 2024-01-01 16:23:52 -05:00
parent d951d543ed
commit 476ab85aec
Signed by: judahsotomayor
SSH Key Fingerprint: SHA256:9Dq4ppxhfAjbX+7HLXEt+ROMiIojI6kqQgUyFUJb9lI
2 changed files with 15 additions and 20 deletions

View File

@ -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,9 +981,15 @@ 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
'("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

Binary file not shown.