.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

Globs for subdirs in bundles in resources -> src front-matter 4

(Last modified on Mon Jan 22, 2018)

This page makes use of the super-asterisk support introduced in Hugo v0.34. Images :src "**copy-of-*.png" — “works* :src "**copy-2-*.png" Summary :src "images/copy-of-*.png" — works (here) :src "*/copy-of-*.png" — works (here) :src "copy-of-*.png" — does not work (here) :src "**copy-of-*.png" — works (this page)

HTML entities in code blocks

(Last modified on Thu Dec 21, 2017)

Hugo Issue #4179 <Foo attr=" &lt; "></Foo>

Blackfriday Issue 404

(Last modified on Thu Nov 2, 2017)

| a | b | |---|---| | c | d | See blackfriday # 404.

Using undefined shortcodes

(Last modified on Thu Nov 2, 2017)

Using an undefined shortcode below! To see the issue, remove the x from {x{ below, and run hugo server. {x{< img src="foo.png" >}} Issue The website will generate fine, but with a silent error on the terminal: ERROR 2017/11/02 10:37:54 Unable to locate template for shortcode "img" in page "posts/src-block-hugo-shortcoded-undefined.md" The hugo server run server will keep on living, and generating the pages almost correctly, while just balking on shortcode expansions!

Using only defined shortcodes

(Last modified on Thu Nov 2, 2017)

With special shortcode comment chars {{< figure src="/images/org-mode-unicorn-logo.png" title="Org Mode + Hugo Rock!" >}} Without special shortcode comment chars If you use shortcodes, even in code blocks!, Hugo will try to expand those. So below will not work.. i.e. in the Hugo generated HTML you will not see a shortcode code snippet. Org Mode + Hugo Rock!

sub section 2

(Last modified on Thu Nov 2, 2017)

Section 2 of chapter 2

sub section 2

(Last modified on Thu Nov 2, 2017)

Section 2 of chapter 1

sub section 1

(Last modified on Thu Nov 2, 2017)

Section 1 of chapter 2

sub section 1

(Last modified on Thu Nov 2, 2017)

Section 1 of chapter 1

Verse for indentation

(Last modified on Thu Nov 2, 2017)

Some text before indented text.     Text indented by 4 spaces Org removes indentation from the first line of the text block even in a Verse block. To get around that, the trick is to use the > character before the required indentation spaces only on the first non-blank line in a Verse block. Only that first > character is removed when translating to Markdown. More examples More indentation than in the above example:


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]