.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 Feb 12, 2025 19:37 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

Table with Org markup where the markup is ignored

(Last modified on Mon Jan 3, 2022)

QueryID SQL Text Query Time (Seconds) Query Time Hot (Seconds) Q0 SELECT cab_type, count(*) FROM trips_log GROUP BY cab_type; 10.14 11.57 Q1 SELECT passenger_count, avg(total_amount) FROM trips_log GROUP BY passenger_count; 12.00 6.27 Q2 SELECT passenger_count, toYear(pickup_datetime) AS year, count(*) FROM trips_log GROUP BY passenger_count, year; 10.45 7.23 Q3 SELECT passenger_count, toYear(pickup_datetime) AS year, round(trip_distance) AS distance, count(*) FROM trips_log GROUP BY passenger_count, year, distance ORDER BY year, count(*) DESC; 13.

Sub/superscripts require braces

(Last modified on Mon Jan 3, 2022)

By default, ox-hugo implements the ^:{} export option. See C-h v org-export-with-sub-superscripts for details. With this option, the text that needs to be subscripted or superscripted has to be surrounded by braces {..} following the _ or ^. Following text will export _ and ^ verbatim # a_b a_bc a^b a^bc Following text will export _{..} as subscript and ^{..} as superscript # ab abc ab abc

Overriding Org-style tags

(Last modified on Mon Jan 3, 2022)

By using EXPORT_HUGO_TAGS in the property drawer, Org tags in the current heading (“this_tag_wont_apply”) and the inherited one (“alpha”, “beta”, “hyphenated-tag”, “super”) will get overridden. When setting categories via the keyword #+hugo_categories or the subtree property EXPORT_HUGO_CATEGORIES, do not add the “@” prefix.

Escaping hashes and exclamations correctly in body

(Last modified on Mon Jan 3, 2022)

I intend to show these # characters verbatim; they should not render as Markdown headings. They also shouldn’t show up with a leading \ in the final rendered output. #This is not an Org comment. It has a hash char at beginning of a paragraph which must be escaped just once i.e. show up as \# in Markdown. blah # This isn’t an Org comment either This * will be escaped just once i.

Dealing with underscores

(Last modified on Mon Jan 3, 2022)

Cases where the underscores should be escaped # _something foo bar _something foo bar something_ foo bar something_ foo bar Cases when the underscores should not be escaped # By itself _ In a verbatim block _ In an emoji 🙌, ✅ In a citation @abc_def

Inheriting tags

(Last modified on Mon Jan 3, 2022)

If user specifies tags to the post subtree heading, those tags get added to the set of default tags set in #+filetags (and the ones inherited). For the inheritance of tags from parent headings and #+filetags to work, org-use-tag-inheritance needs to be set appropriately if changed from the default value of t. These tags are collected together and assigned to the Hugo tags front matter variable for this post. When setting categories via Org-style tags, prefix the tags with “@”.

Don't number headings or TOC

(Last modified on Mon Jan 3, 2022)

Post sub-heading 1 # Post sub-heading 1.1 # Post sub-heading 1.1.1 # Post sub-heading 1.2 # Post sub-heading 1.3 # Post sub-heading 2 # Post sub-heading 2.1 # Post sub-heading 2.2 # Post sub-heading 2.2.1 # Post sub-heading 2.2.2 # The UNNUMBERED property for this subtree is set to t. So this heading will show up as unnumbered in both the post body and the TOC. Post sub-heading 2.2.3 # Post sub-heading 3 # Post sub-heading 3.

Don't number headings (but yes in TOC)

(Last modified on Mon Jan 3, 2022)

Post sub-heading 1 # Post sub-heading 1.1 # Post sub-heading 1.1.1 # Post sub-heading 1.2 # Post sub-heading 1.3 # Post sub-heading 2 # Post sub-heading 2.1 # Post sub-heading 2.2 # Post sub-heading 2.2.1 # Post sub-heading 2.2.2 # The UNNUMBERED property for this subtree is set to t. So this heading will show up as unnumbered in both the post body and the TOC. Post sub-heading 2.2.3 # Post sub-heading 3 # Post sub-heading 3.

Draft state with other headings

(Last modified on Mon Jan 3, 2022)

The “TODO” state of this heading (which is nil) should be ignored # If a post has the DRAFT state set, the draft front matter variable should be set to true, even if the post has a sub-heading immediately after the post heading.

Source blocks with langs that need to be replaced in Markdown

(Last modified on Mon Jan 3, 2022)

(print "hello") (print "hello")


This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.101.0 (commit 466fa43c16709b4483689930a4f9ac8add5c9f66) . This site is powered by Netlify.
[Test Site home | ox-hugo home]