Browse Source

Update hugo section

main
parent
commit
26bb814a79
  1. 38
      README.org
  2. 16
      init.el

38
README.org

@ -606,24 +606,6 @@ Configure the default capture template for daily entries.
:head "#+TITLE: %<%Y-%m-%d>\n"))) :head "#+TITLE: %<%Y-%m-%d>\n")))
#+end_src #+end_src
** Agenda
Configure agenda sources.
+ Dailies ~~/.local/source/brain/daily/~
+ Secrets ~~/.local/source/secrets/org/~
#+begin_src emacs-lisp
(setq org-agenda-files '("~/.local/source/brain/daily/"
"~/.local/source/secrets/org/"))
#+end_src
Open an agenda buffer with =SPC a=.
#+begin_src emacs-lisp
(dotfiles/leader
"a" '(org-agenda :which-key "Agenda"))
#+end_src
** Blogging ** Blogging
I use [[https://gohugo.io][Hugo]] for my personal [[https://chrishayward.xyz][website]], which I write in =Org-mode= before compiling to =hugo-markdown=. I use [[https://gohugo.io][Hugo]] for my personal [[https://chrishayward.xyz][website]], which I write in =Org-mode= before compiling to =hugo-markdown=.
@ -642,7 +624,25 @@ Creaate a capture template for blog posts in the =posts= sub directory.
'("b" "Blogging" plain (function org-roam-capture--get-point) '("b" "Blogging" plain (function org-roam-capture--get-point)
"%?" "%?"
:file-name "posts/${slug}" :file-name "posts/${slug}"
:head "#+TITLE: ${title}\n#+HUGO_BASE_DIR: ../\n#+HUGO_SECTION: ./\n"))
:head "#+TITLE: ${title}\n#+HUGO_BASE_DIR: ~/.local/source/website\n#+HUGO_SECTION: posts\n"))
#+end_src
** Agenda
Configure agenda sources.
+ Dailies ~~/.local/source/brain/daily/~
+ Secrets ~~/.local/source/secrets/org/~
#+begin_src emacs-lisp
(setq org-agenda-files '("~/.local/source/brain/daily/"
"~/.local/source/secrets/org/"))
#+end_src
Open an agenda buffer with =SPC a=.
#+begin_src emacs-lisp
(dotfiles/leader
"a" '(org-agenda :which-key "Agenda"))
#+end_src #+end_src
** Screencasts ** Screencasts

16
init.el

@ -101,7 +101,7 @@
(dotfiles/leader (dotfiles/leader
"." '(find-file :which-key "Files") "." '(find-file :which-key "Files")
"," '(switch-to-buffer :which-key "Buffer")
"," '(switch-to-buffer :which-key "Buffers")
"c" '(kill-buffer-and-window :which-key "Close")) "c" '(kill-buffer-and-window :which-key "Close"))
(dotfiles/leader (dotfiles/leader
@ -264,12 +264,6 @@
:file-name "daily/%<%Y-%m-%d>" :file-name "daily/%<%Y-%m-%d>"
:head "#+TITLE: %<%Y-%m-%d>\n"))) :head "#+TITLE: %<%Y-%m-%d>\n")))
(setq org-agenda-files '("~/.local/source/brain/daily/"
"~/.local/source/secrets/org/"))
(dotfiles/leader
"a" '(org-agenda :which-key "Agenda"))
(use-package ox-hugo (use-package ox-hugo
:after ox) :after ox)
@ -277,7 +271,13 @@
'("b" "Blogging" plain (function org-roam-capture--get-point) '("b" "Blogging" plain (function org-roam-capture--get-point)
"%?" "%?"
:file-name "posts/${slug}" :file-name "posts/${slug}"
:head "#+TITLE: ${title}\n#+HUGO_BASE_DIR: ../\n#+HUGO_SECTION: ./\n"))
:head "#+TITLE: ${title}\n#+HUGO_BASE_DIR: ~/.local/source/website\n#+HUGO_SECTION: posts\n"))
(setq org-agenda-files '("~/.local/source/brain/daily/"
"~/.local/source/secrets/org/"))
(dotfiles/leader
"a" '(org-agenda :which-key "Agenda"))
(use-package gif-screencast (use-package gif-screencast
:custom :custom

Loading…
Cancel
Save