.Kind (page): .Type (posts) / .Layout ()
Bundle: n/a (regular page)
[ 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 Sep 17, 2020 15:47 UTC.


This page was created/modified in commit e498a90 "Support Named arguments for Shortcodes special blocks" on 2018-02-06.
Markdown source of this page

Paired shortcodes using special blocks (Named Arguments)

tags: shortcode paired special-block arguments named


Description/Summary

Test case for feature requested in ox-hugo Issue #119. Paired markdown shortcode In the below example, "foo bar" will be the arg1 argument, and "color: red; text-align: center;" will be the arg2 argument. <ul> <li><b>arg1:</b> foo bar</li> <li><b>arg2:</b> color: red; text-align: center;</li> </ul> Content with emphasis characters is rendered. The HTML markup will also get rendered. Paired non-markdown (default) shortcode In the below example, "foo" will be the arg1 argument, and "color:green;" will be the arg2 argument.


Content

Test case for feature requested in ox-hugo Issue #119.

Paired markdown shortcode

In the below example, "foo bar" will be the arg1 argument, and "color: red; text-align: center;" will be the arg2 argument.

<ul>
    <li><b>arg1:</b> foo bar</li>
    <li><b>arg2:</b> color: red; text-align: center;</li>
</ul>

Content with emphasis characters is rendered.

The HTML markup will also get rendered.

Paired non-markdown (default) shortcode

In the below example, "foo" will be the arg1 argument, and "color:green;" will be the arg2 argument.

Content is rendered like HTML. The Markdown _emphasis_ characters are !! NOT !! rendered.

Page (Debug)

Page VariableValue
Name "Paired shortcodes using special blocks (Named Arguments)"
Title "Paired shortcodes using special blocks (Named Arguments)"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://ox-hugo.scripter.co/test/posts/paired-shortcodes-special-blocks-named-arguments/"
RelPermalink "/posts/paired-shortcodes-special-blocks-named-arguments/"
Data
page.Data{} (type:page.Data)
NextPagePage using the Headless Page Bundle X
PrevPagePaired Shortcodes using special blocks (No Arguments)
NextInSectionPage using the Headless Page Bundle X
PrevInSectionPaired Shortcodes using special blocks (No Arguments)

Page Params (Debug)

KeyTypeValue
draftbool false
iscjklanguagebool false
lastmodtime.Time 2018-02-06 14:17:12 -0500 -0500
tags[]string "shortcode" "paired" "special-block" "arguments" "named"
titlestring "Paired shortcodes using special blocks (Named Arguments)"

File Object (Debug)

FileInfo VariableValue
UniqueID "aecdc351ec31de508e6f5c3d679182eb"
BaseFileName "paired-shortcodes-special-blocks-named-arguments"
TranslationBaseName "paired-shortcodes-special-blocks-named-arguments"
Lang "en"
Section "posts"
LogicalName "paired-shortcodes-special-blocks-named-arguments.md"
Dir "posts/"
Ext "md"
Path "posts/paired-shortcodes-special-blocks-named-arguments.md"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.68.3 (commit 157669a0) .
[Test Site home | ox-hugo home]