|
|
|
|
@ -80,9 +80,10 @@ presentation styles./ |
|
|
|
|
This package requires emacs 24.5+ and Org 9.0+. It is available on |
|
|
|
|
Melpa ([[https://melpa.org/#/ox-hugo]]). |
|
|
|
|
* Usage |
|
|
|
|
Once the package is installed, you will need to require it so that the |
|
|
|
|
=ox-hugo= export options are available in the /Org Export Dispatcher/ |
|
|
|
|
menu (the one you see when you hit =C-c C-e= to initiate any export). |
|
|
|
|
Once the package is installed, you will need to /require/ it so that |
|
|
|
|
the =ox-hugo= export options are available in the /Org Export |
|
|
|
|
Dispatcher/ menu (the one you see when you hit =C-c C-e= to initiate |
|
|
|
|
any export). |
|
|
|
|
|
|
|
|
|
You can do that by adding the below to your config: |
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
|
@ -94,6 +95,28 @@ If you use =use-package=, you can do the below instead: |
|
|
|
|
(use-package ox-hugo |
|
|
|
|
:after ox) |
|
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
|
|
*Spacemacs* |
|
|
|
|
|
|
|
|
|
Spacemacs users can choose to add this snippet to their |
|
|
|
|
=dotspacemacs/user-config= function in =.spacemacs=: |
|
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
|
(defun dotspacemacs/user-config () |
|
|
|
|
;; Other stuff |
|
|
|
|
;; .. |
|
|
|
|
|
|
|
|
|
;; ox-hugo config |
|
|
|
|
(use-package ox-hugo |
|
|
|
|
:ensure t ;Auto-install the package from Melpa |
|
|
|
|
:after ox)) |
|
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
|
|
If you do so, you *also need to* add =ox-hugo= to |
|
|
|
|
=dotspacemacs-additional-packages=. |
|
|
|
|
|
|
|
|
|
/Verified to work on Spacemacs =develop= branch with =spacemacs-base= |
|
|
|
|
distribution, =emacs= editing style./ |
|
|
|
|
** Before you export |
|
|
|
|
Before you export check that these properties are set as you need: |
|
|
|
|
- HUGO_SECTION :: The default Hugo section name for all the posts. See |
|
|
|
|
|