.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 Oct 09, 2018 14:48 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/"
RSSLink ""
Data
KeyTypeValue
Pageshugolib.Pages
NextPageBlackfriday Issue 404
PrevPageUsing undefined shortcodes
NextInSectionBlackfriday Issue 404
PrevInSectionUsing undefined shortcodes

Page Params (Debug)

KeyTypeValue
datetime.Time 2017-11-02 12:49:00 -0400 -0400
draftbool false
iscjklanguagebool false
lastmodtime.Time 2017-11-02 12:49:28 -0400 -0400
publishdatetime.Time 2017-11-02 12:49:00 -0400 -0400
titlestring "Using only defined shortcodes"

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.50-DEV (commit d5d50e2f, using Chroma commit d5ca12b) .

[Back to Hugo Sandbox home]