Kaushal Modi
0af60fc9f2
Use the new var reassignment operator (=) in Go templates
...
Now the minimum Hugo version needed to generate the doc site is 0.48.
8 years ago
Kaushal Modi
d65c054127
Fix another locale related test failure
...
Setting `set-locale-environment` makes the Org timestamp days to
remain in English too.
Thanks to @takaxp to help with this debug.
Ref:
https://github.com/kaushalmodi/ox-hugo/issues/195#issuecomment-416670084
8 years ago
Kaushal Modi
1bfef80414
Move Elisp to setup-ox-hugo.el that does not need to be in Makefile
8 years ago
Kaushal Modi
cd33b6e356
Hard-code the LANG env var so that `make test` passes *everywhere*
...
Ref: The auto locale detection test failure ("ja_JP" vs "en_US") in
https://github.com/kaushalmodi/ox-hugo/issues/195#issuecomment-416486948
8 years ago
Kaushal Modi
4ece975316
Fix unintentional setting of front-matter format to YAML
8 years ago
Kaushal Modi
0670d755fd
Allow disabling Pandoc citations in subtrees
8 years ago
Kaushal Modi
016959c76e
Remove fluff from the last citations+caption test case
8 years ago
Kaushal Modi
2c63b65b67
Add test description
8 years ago
Kaushal Modi
a92efd7ddb
Improve the example with caption for Babel exported figure
...
Ref:
- https://emacs.stackexchange.com/a/12155/115
- https://github.com/kaushalmodi/ox-hugo/issues/191#issuecomment-414129378
8 years ago
Kaushal Modi
703823f827
Don't allow shortcodes to wrap over multiple lines
...
Pandoc auto-wraps the re-written Markdown. While I like this behavior
in general, it breaks the Hugo parsing as it does not allow newlines
between the "{{<" and ">}}" chars in shortcodes.
Actual fix for https://github.com/kaushalmodi/ox-hugo/issues/191 .
8 years ago
Kaushal Modi
370d60df0c
Add check that pandoc-citeproc is installed too
...
Ref: https://github.com/kaushalmodi/ox-hugo/issues/191#issuecomment-414129378
8 years ago
Kaushal Modi
c7f19a3ca3
Fix removal of escapes from figure shortcodes
...
Fixes the case where the figure shortcode spans over multiple lines.
Fixes https://github.com/kaushalmodi/ox-hugo/issues/191 .
Also fix the time zone in the date stamp for test to pass over Travis
CI.
8 years ago
Kaushal Modi
598a4d8822
Don't make Pandoc convert HTML spans to Pandoc style classes
...
Use -bracketed_spans
Fixes https://github.com/kaushalmodi/ox-hugo/issues/191 .
8 years ago
Kaushal Modi
af4c706305
Escape double quotes in figure captions
...
Fixes https://github.com/kaushalmodi/ox-hugo/issues/190 .
8 years ago
Kaushal Modi
34343df502
Allow auto-export on save to be enabled using .dir-locals.el
...
Works for either flow: per-subtree or per-file
Fixes https://github.com/kaushalmodi/ox-hugo/issues/185 .
---
- Replace the File local variables with .dir-locals.el.
- Update documentation
8 years ago
Kaushal Modi
cb2ed1de07
Allow removing front-matter keys using hugo_front_matter_key_replace
...
Simply set the "newkey" to "nil". See
https://ox-hugo.scripter.co/doc/replace-front-matter-keys/#removing-keys
8 years ago
Kaushal Modi
6bb23e48f7
Update doc and test site themes
8 years ago
Kaushal Modi
37e4f0f34f
Don't export unnecessary CSS classes
8 years ago
Kaushal Modi
4ed632e934
Update the "#+toc: headlines N local" test
8 years ago
Kaushal Modi
03fe85af36
Fix exporting #+toc keyword with 'local'
...
Fixes https://github.com/kaushalmodi/ox-hugo/issues/183 .
8 years ago
Kaushal Modi
850c10d063
Update "#+begin_export html" test
8 years ago
Kaushal Modi
c5bccd5b77
Add more detail to the Image Links test case
8 years ago
Kaushal Modi
a2f83d9977
Update doc and test site themes
8 years ago
Kaushal Modi
dc4e54c636
Fix a test
8 years ago
Kaushal Modi
4db4e78b51
Make the Author documentation thorough
...
Ref: https://github.com/kaushalmodi/ox-hugo/issues/180 ,
https://github.com/kaushalmodi/ox-hugo/issues/178
8 years ago
Kaushal Modi
bf76cc7e96
Document the csl meta-data
8 years ago
Kaushal Modi
f2a65175e3
Move the location of test .bib files
8 years ago
Kaushal Modi
dd16904e31
Add test for complex lists for Pandoc output
...
Remove that caveat from manual -- Doesn't seem to apply much anymore as
the Pandoc output seems to work with Blackfriday in all these tests.
8 years ago
Kaushal Modi
00a6794684
Fix fenced code blocks in Pandoc output
8 years ago
Kaushal Modi
83858559ce
More citation tests
...
Fixes https://github.com/kaushalmodi/ox-hugo/issues/177 .
8 years ago
Kaushal Modi
03f7fa45f7
Support Pandoc link-citations meta-data; add test
...
Ref: https://github.com/kaushalmodi/ox-hugo/issues/177
8 years ago
Kaushal Modi
c8770f4bdb
Disable Pandoc fenced divs, now allowing ox-hugo inserted HTML divs
...
This also drastically reduced the Pandoc output cleanup complication.
8 years ago
Kaushal Modi
4e4e7d21d4
Use HTML class instead of id for "references"
8 years ago
Kaushal Modi
eaaed01f6b
Make Pandoc output Markdown footnote style consistent with ox-hugo
8 years ago
Kaushal Modi
19cf97ddaf
Fix typo in a test
8 years ago
Kaushal Modi
b78ddba898
Restore Ox-hugo exported Markdown file if Pandoc output has no refs
8 years ago
Kaushal Modi
cb2558b65a
Fix case where citations are enabled, but no citations exist
8 years ago
Kaushal Modi
e62cc259d2
Make Pandoc export to Blackfriday compatible Markdown table
...
Thanks to Daniel Stall from
https://groups.google.com/d/msg/pandoc-discuss/PvMKmgVeO3w/oqP6mKHoAgAJ
Add "-simple_tables+pipe_tables" to "-t markdown-citations".
8 years ago
Kaushal Modi
7c2a51ff7f
Minor refactoring of tests
...
Inherit the common Pandoc citation meta data for the Citations TOML
and YAML tests.
8 years ago
Kaushal Modi
3dcec7e27e
Don't force the final front-matter to YAML because of Pandoc
8 years ago
Kaushal Modi
c6949a5d89
Add few comments to the citations test
...
Ref: https://github.com/kaushalmodi/ox-hugo/issues/175
8 years ago
Kaushal Modi
96d13b1b96
Convert the Pandoc inserted ":::" to more sensible div wrappers
8 years ago
Kaushal Modi
f2c1ab9520
More fixing of Pandoc output
8 years ago
Kaushal Modi
ac22a16a07
Replace pandoc ref ID's to HTML ID's
8 years ago
Kaushal Modi
c4251abb78
Delete lines matching "^:::$"
8 years ago
Kaushal Modi
a17c136f6c
Fix Pandoc butchering the Hugo shortcodes
8 years ago
Kaushal Modi
e94c9d54b2
Don't use Pandoc inserted meta-data
...
Pandoc introduced its citations related meta-data like bibliography
and nocite which I did not prefer for few reasons:
1. It leaks full paths of the user's bibliography files in public.
2. Those meta-data fields are not needed by Hugo.
3. I like my style of YAML list fields better, it's more concise, and
consistent with the YAML front-matter of non-Pandoc-Citation posts.
8 years ago
Kaushal Modi
b111d2a95e
Rename: HUGO_PANDOC_CITEPROC -> HUGO_PANDOC_CITATIONS
8 years ago
Kaushal Modi
ad2f5d0dbb
Support BIBLIOGRAPHY and pandoc-citeproc
...
This is first commit of a series of commits to support
pandoc-citeproc.
New keywords/properties:
- HUGO_PANDOC_CITEPROC
- BIBLIOGRAPHY
Ref: https://github.com/kaushalmodi/ox-hugo/issues/175
8 years ago
Kaushal Modi
80293a230a
Fix typo: data->date
8 years ago