.Kind (home): .Type (page) / .Layout ()
Bundle: branch
[ categories | tags | search ]
ox-hugo Test Site

This is the test site for the ox-hugo package for Emacs/Org-mode.

It is updated automatically after each commit to the ox-hugo repo. It was last updated on Dec 10, 2018 14:55 UTC.


This page was created/modified in commit f0dd0e2 "Support image copying for the homepage branch bundle case" on 2018-04-23.
Markdown source of this page

Content

Image in homepage branch bundle:


Resources

Suppress lastmod non-zero, but date unset

(Last modified on Sat Sep 15, 2018)

Ensure that nil value of parsed DATE is also handled in the “suppress lastmod” logic.

Table caption

(Last modified on Fri Sep 7, 2018)

The caption can contain be emphasized using the usual markup characters too. Table 1: Awesome table h1 h2 h3 abc def ghi Some text. Table 2: Another awesome table h1 h2 h3 jkl mno pqr Some more text. Table 3: Third table — Caption with em-dash – and – en-dash h1 h2 h3 stu vwx yz

Table Styling with ATTR_HTML and ATTR_CSS

(Last modified on Fri Sep 7, 2018)

This table styling feature overcomes a known limitation in Hugo/Blackfriday (Blackfriday Issue #404) that doesn’t allow wrapping Markdown elements with <div> tags (so that a user can assign classes, etc. to those div blocks). So this feature had to be implemented at the expense of a nasty hack demonstrated here. HTML5 does not allow align, width, etc. attributes within the table tag [Ref]. So instead ox-hugo simply wraps the table with a div with a class.

Source block with caption

(Last modified on Fri Sep 7, 2018)

prefix = /dir/where/you/want/to/install/org # Default: /usr/share Code Snippet 1: Prefix value in local.mk (message "hello") Code Snippet 2: Hello — Caption with em-dash – and – en-dash

Default Creator

(Last modified on Wed Sep 5, 2018)

The front-matter for this post contains the default Creator string.

Auto-set Lastmod

(Last modified on Wed Sep 5, 2018)

This post will have its lastmod field in the front-matter auto-updated the time it gets exported each time.

Writing Hugo blog in Org (File Export)

(Last modified on Wed Sep 5, 2018)

First heading within the post This post will be exported as content/posts/writing-hugo-blog-in-org-file-export.md. Its title will be “Writing Hugo blog in Org”. It will have hugo and org tags and emacs as category. The lastmod property in the front-matter is set automatically to the time of export. The menu item identifier is auto-set. The menu item weight and post weight if needed have to be manually specified as shown above.

Writing Hugo blog in Org

(Last modified on Wed Sep 5, 2018)

First heading within the post This post will be exported as content/posts/writing-hugo-blog-in-org-subtree-export.md. Its title will be “Writing Hugo blog in Org”. It will have hugo and org tags and emacs as category. The menu item weight and post weight are auto-calculated. The menu item identifier is auto-set. The lastmod property in the front-matter is set automatically to the time of export. A sub-heading under that heading It’s draft state will be marked as true as the subtree has the todo state set to TODO.

Specified locale in front-matter

(Last modified on Tue Aug 28, 2018)

Specify the locale using :EXPORT_HUGO_LOCALE: es_ES property.

Auto-detected locale in front-matter

(Last modified on Tue Aug 28, 2018)

Locale is not specified, so is auto-detected.


This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.52-DEV (commit bdec1666, using Chroma commit d5ca12b) .
[Test Site home | ox-hugo home]