.Kind (page): .Type (bugs) / .Layout ()
Bundle: n/a (regular page)
[ 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 Jan 20, 2022 13:08 UTC.


This page was created/modified in commit c99682c "Add dates" on 2017-11-02.
Markdown source of this page

Using only defined shortcodes


Description/Summary

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!


Content

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!


Page (Debug)

Page VariableValue
Name "Using only defined shortcodes"
Title "Using only defined shortcodes"
ResourceType "page"
Kind "page"
Section "bugs"
Draft false
Type "bugs"
Layout ""
Permalink "https://hugo-sandbox.netlify.com/bugs/src-block-hugo-shortcodes-defined/"
RelPermalink "/bugs/src-block-hugo-shortcodes-defined/"
Data
page.Data{} (type:page.Data)
NextPageBlackfriday Issue 404
PrevPageUsing undefined shortcodes
NextInSectionBlackfriday Issue 404
PrevInSectionUsing undefined shortcodes

Page Params (Debug)

maps.Params{"date":time.Date(2017, time.November, 2, 12, 49, 0, 0, time.Location("")), "draft":false, "iscjklanguage":false, "lastmod":time.Date(2017, time.November, 2, 12, 49, 28, 0, time.Location("")), "publishdate":time.Date(2017, time.November, 2, 12, 49, 0, 0, time.Location("")), "title":"Using only defined shortcodes"} (type:maps.Params)

File Object (Debug)

FileInfo VariableValue
UniqueID "c3e879fe21710e6c7c402e4212342d1d"
BaseFileName "src-block-hugo-shortcodes-defined"
TranslationBaseName "src-block-hugo-shortcodes-defined"
Lang "en"
Section "bugs"
LogicalName "src-block-hugo-shortcodes-defined.md"
Dir "bugs/"
Ext "md"
Path "bugs/src-block-hugo-shortcodes-defined.md"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.92.0 (commit b3549403) .

[Back to Hugo Sandbox home]