.Kind (home): .Type (page) / .Layout ()
Bundle: branch
[ categories | projects | tags | search ]
Hugo Sandbox

This is an unofficial Hugo sandbox site to try to replicate possible bugs in hugo.

It is updated automatically after each commit to the hugo-sandbox repo. It was last updated on Oct 09, 2018 14:48 UTC.


This page was created/modified in commit cf4db09 "Add image credit, caption and creator in front-matter" on 2018-03-21.
Markdown source of this page

Featured/Header Image

Generated in emacs (Credit: meme.el)
KeyTypeValue
captionstring "Generated in emacs"
creditstring "meme.el"
sizeint64 600
urlstring "https://github.com/larsmagne/meme"

Content

content/
 - _index.md
 - homebranchbundle-featured.png
Kind Description Example
home The home page /index.html
page A page showing a regular page my-post page (/posts/my-post/index.html)
section A page listing regular pages from a given section posts section (/posts/index.html)
taxonomy A page listing regular pages from a given taxonomy term page for the term awesome from tags taxonomy (/tags/awesome/index.html)
taxonomyTerm A page listing terms from a given taxonomy page for the tags taxonomy (/tags/index.html)


Resources

Table with single column

(Last modified on Thu Nov 2, 2017)

h1 a b

Table with Org markup where the markup is ignored

(Last modified on Thu Nov 2, 2017)

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 Thu Nov 2, 2017)

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

Sub/superscripts don't require braces

(Last modified on Thu Nov 2, 2017)

Following text will export _.. as subscript and ^.. as superscript ab abc ab abc Following text will export _{..} as subscript and ^{..} as superscript ab abc ab abc

Spaces in tags

(Last modified on Thu Nov 2, 2017)

The Org tags do not allow spaces. So the trick we use is replace double underscores with spaces. So an Org tag abc__def becomes Hugo tag abc def.

Spaces in categories

(Last modified on Thu Nov 2, 2017)

The Org tags do not allow spaces. So the trick we use is replace double underscores with spaces. So an Org tag @abc__def becomes Hugo category abc def.

Source blocks with line number annotation

(Last modified on Thu Nov 2, 2017)

Org reference Hugo highlight shortcode with line numbers Cases Default new line number start Org source #+BEGIN_SRC emacs-lisp-n ;; this will export with line number 1 (default) (message "This is line 2") #+END_SRC Output 1 2 ;; this will export with line number 1 (default) (message "This is line 2") Specify new line number start Org source #+BEGIN_SRC emacs-lisp-n 20 ;; this will export with line number 20 (message "This is line 21") #+END_SRC Output 20 21 ;; this will export with line number 20 (message "This is line 21") Default continued line numbers Org source #+BEGIN_SRC emacs-lisp+n ;; This will be listed as line 22 (message "This is line 23") #+END_SRC Output 22 23 ;; This will be listed as line 22 (message "This is line 23") Specify continued line numbers jump Org source #+BEGIN_SRC emacs-lisp+n 10 ;; This will be listed as line 33 (message "This is line 34") #+END_SRC Output 33 34 ;; This will be listed as line 33 (message "This is line 34")

Source blocks with highlighting

(Last modified on Thu Nov 2, 2017)

Without line numbers Org source #+BEGIN_SRC emacs-lisp:hl_lines 1,3-5 (message "This is line 1") (message "This is line 2") (message "This is line 3") (message "This is line 4") (message "This is line 5") (message "This is line 6") #+END_SRC Output (message "This is line 1") (message "This is line 2") (message "This is line 3") (message "This is line 4") (message "This is line 5") (message "This is line 6") Above highlighting might look weird as the highlighting spans the full page/container width.

Prefer Hyphen in Tags

(Last modified on Thu Nov 2, 2017)

Prefer Hyphen Categories

(Last modified on Thu Nov 2, 2017)


This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.50-DEV (commit d5d50e2f, using Chroma commit d5ca12b) .

[Back to Hugo Sandbox home]