.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 Oct 05, 2024 21:20 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

Plain lists with ATTR_HTML

(Last modified on Mon Jan 3, 2022)

Unordered lists # Red list item 1 Red list item 2 Green list item 1 Green list item 2 Ordered lists # Green ordered list item 1 Green ordered list item 2 The green-text style is defined in the list above this one. Ordered list with custom counter # Blue list item 1 Blue list item 2 Blue list item 10 Definition/descriptive lists # Defn A Something A in red Defn B Something B in red The red-text style is defined in the first list above.

Paragraphs with ATTR_HTML

(Last modified on Mon Jan 3, 2022)

Regular text. Red text. Regular text. Green text. Regular text.

Center align

(Last modified on Mon Jan 3, 2022)

From C-h i g (org) Paragraphs: If you would like to center some text, do it like this: #+begin_center Everything should be made as simple as possible, \\ but not any simpler #+end_center Everything should be made as simple as possible, but not any simpler Testing emphasis in Org center block # bold italics strikethrough

Alert Shortcode Lookalike

(Last modified on Mon Jan 3, 2022)

ox-hugo Issue #119 Below doesn’t export to an alert shortcode, but the exported Markdown contains HTML that resembles the shortcode code (Courtesy: hugo-academic theme): <div class="alert alert-{{ .Get 0 }}"> {{ .Inner }} </div> There are few ways to mimic that. CSS # Source for alert CSS Note 1 The ox-hugo test site is not using FontAwesome, so using the unicode symbols 🛈 and ⚠ instead. Note 2 Also, due to the limitation that Markdown text cannot be simply wrapped in div, a hack is used, that requires using an empty div pair.

Post with underscore in name

(Last modified on Mon Jan 3, 2022)

Test post to test another ox-hugo test.

Italicize links with underscores (Goldmark)

(Last modified on Mon Jan 3, 2022)

Test that links with underscores can be italicized/emboldened/both without replacing underscores with %5f.

Italicize links with underscores (Blackfriday)

(Last modified on Mon Jan 3, 2022)

Test that links with underscores can be italicized/emboldened/both.

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.


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]