A site with bare-bones Hugo “theme” is used to live-test the
package — you’ll know why theme is double-quoted once you try out the
site on hugo
.
Check out the example single Org file. That is created for testing various Org->Hugo content and meta-data translation features. Here are the exported Markdown files.
How to try ox-hugo
on that site? #
- Clone this repo:
git clone -j8 https://github.com/kaushalmodi/ox-hugo
- Ensure that
go
, andpandoc
(at least version 2.16.2) are installed (more info here). - Start the
hugo
server:make serve HUGO_BASE_DIR=test/site
- Open
http://localhost:1337
in your browser. - In a different terminal,
cd
to the repo directory. - Run:
make md
- In few seconds, hundreds of test posts will get created, with the
hugo server
aided preview in the browser zapping through each new created post.
Alternative way #
- Clone this repo.
git clone -j8 https://github.com/kaushalmodi/ox-hugo
- Ensure that
go
andpandoc
(at least version 2.16.2) are installed (more info here). cd
to thetest/site/
directory and do:hugo server -D --navigateToChanged
- Above command will mention the localhost where the site is served. Open that in your browser.
- In emacs,
(require 'ox-hugo)
or evaluate theox-hugo.el
from the cloned repo. - Open the
all-posts.org
file. C-c C-e H A
– That will export all subtrees in the file to Markdown files.- In few seconds, hundreds of test posts will get created, with the
hugo server
aided preview in the browser zapping through each new created post.