v0.8 #
Features #
- Support exporting content files and attachments (images, documents) to Page Bundles organization structure (Hugo v0.32+) – #111.
- Support exporting
resourcesfront-matter (Hugo v0.33+) – #115. - Support exporting
headlessfront-matter (Hugo v0.35+). - Advanced table styling is now possible by specifying
#+attr_htmland#+attr_css(this one is unique toox-hugo) above Org tables. See its documentation – #93.- Similarly, support
#+attr_htmland#+attr_cssfor paragraphs, example blocks, source blocks, plain lists and quote blocks too – #113.
- Similarly, support
- Now
publishDateandexpiryDatefront-matter properties get auto-derived fromSCHEDULEDandDEADLINEspecial properties if associated with the valid Hugo post subtree – commit 0807f42d.- Date values can now be easily set using the
C-c .binding in theHUGO_PUBLISHDATEandHUGO_EXPIRYDATEproperties too.
- Date values can now be easily set using the
Export source blocks and table captions – #38. Here’s a suggested CSS for the captions:
figcaption, .src-block-caption, .table-caption { font-style: italic; text-align: center; }Export descriptive or definition lists in Blackfriday-friendly Markdown format – #114.
Support Org Special Blocks like in HTML and LaTeX exports – #105. Here’s one little example:
#+begin_mark /Some/ *marked* text #+end_markAllow setting
:EXPORT_HUGO_SECTION:in the valid Hugo post subtree itself.Enable replacing any key in the front-matter with anything; it’s even possible to swap the keys now (tags↔categories: commit fb21e82c). New keyword:
HUGO_FRONT_MATTER_KEY_REPLACE– see commit b72a5fb0.Now all the Org keyword values that should get merged, get merged – commit 38eba6d5.
Add
titleas a valid property ofmenufront-matter (Hugo v0.32+).
Backward-incompatible changes #
- A “better user-experience” change.. now you do not need to use
double-underscores as space replacement in
#+hugo_tags,#+hugo_categoriesand#+keywords. See this commit for details and examples – commit 319435db.
Fixes #
- Fix
HUGO_LEVEL_OFFSETnot getting set – #117, thanks @shimmy1996! - Fix internal subtree counter not getting reset after a file-based export.
- Fix clickable image links with
#+name– commit fef0ec50. - Make title text rendering more robust.. now Markdown markup
characters like
*,_and`show up fine, verbatim, in the title. - Make em dash, en dash, horizontal ellipsis render in post titles too – Hugo #4175 (Upstream bug fix), and in source block captions and table captions too.
- Fix double-escaping of
#and![in Markdown export – #110 (fix in upstreamox-md.el).
Meta #
- Re-write the logic for parsing meta-data for various kinds of dates, and optimize the logic for parsing newline separated lists like tags and categories.
- The
hugo-bare-min-themeused for the test site is made more portable (at some point, that theme might be moved to a separate repo).
v0.7 #
Features #
- Now C-c C-e H H works for both per-subtree and per-file flows – commit b1b5d28b.
- Support Org heading based internal links – #88.
- Support list values for custom front-matter variables – #99.
- Support specifying multiple hugo output formats .. Now the
outputsfront-matter variable is a list. - Support the Org
#+authorand#+creatorkeywords and their respective Org Export Options – #106. - Support Org Export Snippets and Export Blocks – commit 1149f20cd.
- Now post titles can be set to
nili.e. be not be a part of the front-matter .. because you can. - Improve the messages printed by
ox-hugoon doing per-subtree or per-file exports.. the progress of files exported using per-subtree flow is now clearer, and the name of the file exported using per-file flow is now explicit.. Helps when you batch export a dozen files with a mix of these 2 flows.
Backward-incompatible changes #
Obsolete org-hugo-export-subtree-∗ functions and replace them with org-hugo-export-wim-∗ (What I Mean) functions. See the doc string of
org-hugo-export-wim-to-mdfor details.If you are using the Auto-export on saving flow, note the function name change there too!
Fixes #
- Fix number of backticks in code fence when code contains code fence (pathological corner case).
- Better document the
HUGO_CODE_FENCEkeyword – #102. - Don’t render
(c),(r),(tm)inside Latex equations – #104 (Upstream bug workaround). - Better recognition of TOML-compatible integers and floats in meta data for front-matter so that valid integers/floats don’t get unnecessarily double-quoted.
Meta #
- Add a
debugprint.htmlpartial to help pretty-print various Hugo objects like Page Params, File and SiteInfo for debug on the test site. - The test site now has tags and categories pages.
- Add few real world example posts containing complex Latex equations: 1, 2.
- Turns out
ox-hugoworks on emacs 24.4 too (but please upgrade to the latest Emacs and Org stable versions!).
v0.6 #
Features #
- Support the
numexport option. Now you can prefix all post headings (or some not.. the ones withUNNUMBEREDproperty set tot) with their section numbers – #76. - Org TOC’s are now exported as unordered Markdown lists. This allows having TOC’s with unnumbered headings too! This also enables prefixing the section headings with their full section numbers, and also having only selected headings unnumbered (both in the post body and the TOC).
- Add support for exporting internal links to source blocks, tables and images by their block names! – #29.
- Org table column alignment markers (
<l>,<r>,<c>) are now exported to equivalent Markdown tables.. so a center-aligned column in Org buffer will remain center-aligned in the final HTML too! – #95. - Allow setting multiple Hugo aliases for a post. Also infer the
section name from inherited
HUGO_SECTIONvalues (subtree-based exports) for those alias prefixes. - Prevent a footnote ref to appear by itself on a newline (based on wrapping) in the browser – #96.
- If Hugo shortcodes are used specifically in Markdown (
md) source blocks, they will be auto-escaped (useful when you want to document/talk about some Hugo shortcode in a blog post) – #94. - If an Org table has just 1 row, don’t make it render as a header row in the final HTML.
- If you have a case where you need to have an Org source block instead a quote block, and then a source block after that quote block (I know, a very common case.. 😉), Blackfriday barfs (Blackfriday #407). But we now have a workaround, which just works – #98.
- Now
ATTR_HTMLabove even hyper-linked images works (earlier it worked only above non-hyper-linked images).
Backward-incompatible changes #
- Org TOC’s are exported as unordered Markdown lists instead of ordered Markdown lists, and now full section numbers (like 1.2.3) are shown in the TOC instead of just the last digit (like 3.) – commit 4be378e7.
- The
numOrg export option is default tonil(only forox-hugo). So Org TOC’s are exported without section numbers by default. To get section numbers, setnumtotoronlytoc.
Fixes #
- Now exporting 1-row Org tables works too.
- Add missing http/https/ftp prefix for hyper-linked images.
Meta #
- Add documentation on how you can have Images live in the same directory as Org source – #91.
- Now only Org files for the documentation site need to be committed
to git.
ox-hugothen exports those to Markdown, and then Hugo publishes those to HTML (as before) — all on Netlify. - Be sure to check out the moderately revamped Test Site. That might
be of interest even if you want to check out what the new features
and changes look like, without first installing/updating
ox-hugoyourself 😄.
v0.5 #
Features #
- Export TOC as a Markdown ordered list. See Table of Contents – #88.
#+attr_htmlabove http/https/ftp links is now supported (useful for specifying thetarget,rel, attributes, for example).
v0.4.1 #
Features #
- Support specifying the
:heightparameter in the#+attr_htmlabove image links. That eventually gets transformed to theheightparameter in thefiguretag in the HTML generated by Hugo. This feature requires building Hugo from its master branch with commit 488631fe (or Hugo v0.31+).
Fixes #
- Fix
EXPORT_HUGO_SECTIONnot getting inherited #90.
v0.4 #
Backward-incompatible changes #
- Restore the default Org behavior of
#+tags. Now that keyword (and theEXPORT_TAGSproperty) is not used byox-hugo. Fixes #89. - File-based exports must now use
#+hugo_tagsto set the post tags. - Subtree-based exports can use the
EXPORT_HUGO_TAGSproperty to override Org-style tags on the same headline (and the ones inherited from Org-style tags from any of the parent subtrees and#+filetags).- Note that for subtree-based exports,
#+filetagscan be used to set tags globally in the file. Earlier#+tagswas used for that purpose.
- Note that for subtree-based exports,
- Subtree-based exports can use the
EXPORT_HUGO_CATEGORIESproperty to override Org-style categories (tags with “@” prefix) on the same headline (and the ones inherited from Org-style categories from any of the parent subtrees and#+filetags).- Note that for subtree-based exports,
#+filetagscan be used to set categories (tags with “@”) globally in the file.
- Note that for subtree-based exports,
See the new section added to documentation: Tags and Categories
Features #
- Support specifying the
:widthparameter in the#+attr_htmlabove image links. That eventually gets transformed to thewidthparameter in thefiguretag in the HTML generated by Hugo.
v0.3.2 #
Fixes #
- Fix issue with headline metadata parsing (ALLTAGS, CLOSED, TODO) when a post Org heading was immediately followed by that post’s sub-heading. This issue was seen in subtree-based exports #87.
v0.3.1 #
Fixes #
- Fix the source block line number annotation when the line numbers increased in number of digits in the same code block.
v0.3 #
Features #
Source blocks can now be exported with line numbers and/or highlighting!
See Source Blocks for details.
v0.2.3 #
Fixes #
org-hugo-slugearlier stripped off only thecodeHTML tag (<code> .. </code>) from the input string, if present. Now it does that for any HTML tag, likespan. For example, this HTML gets stripped off from the above heading (only insideorg-hugo-slugwhen deriving the slug string):<span class="timestamp-wrapper"><span class="timestamp"><2017-10-11 Wed></span></span>.
v0.2.2 #
Backward-incompatible changes #
- Now
ox-hugoby default requires text, to be sub/super-scripted, to be wrapped in{}. So nowa_bwill be exported asa_b, buta_{b}will be exported asa<sub>b</sub>. To revert back to the earlier behavior, user needs to add#+options: ^:tto their Org file.
v0.2.1 #
Fixes #
- Single column tables now export correctly #84.
- Ignore
HUGO_WEIGHTset toautofor per-file exports #83.
v0.2 #
Features #
- Add support for all Hugo
figureshortcode parameters #79. - New option
org-hugo-delete-trailing-wsdefaults tot; now Hugo deletes trailing white-spaces by default. - New options
org-hugo-default-static-subdirectory-for-externalsandorg-hugo-external-file-extensions-allowed-for-copying(related to #69).
Fixes #
- Remove
HUGO_STATIC_IMAGEoption; fix attachment re-write #69. - Fix incorrectly inserted hard line-breaks #72. Added a
new option
HUGO_PRESERVE_FILLING. - Fix error happening when a post title was set to an empty string [ba9e8365].
Backward-incompatible changes #
- Switch the default value of
org-hugo-use-code-for-kbdoption tonil[88ba15ae].
v0.1.3 #
- Now a HUGO key value set to
"nil", like#+hugo_code_fence: nil, will evaluate as nil instead of t, as noworg-hugo--plist-get-true-pis used to parse boolean keys instead ofplist-get.
v0.1.2 #
- Make DateTime matching better; new internal variable
org-hugo--date-time-regexp. Earlier time zones ahead of UTC (with+sign) were not detected as dates inorg-hugo--quote-stringand thus were unnecessarily quoted.
v0.1.1 #
- Use CLOSED log drawer info if available to set the date in front-matter #68.
- Code optimization: Use of
org-entry-getat places instead of maintaining global variables.