Paired shortcodes using special blocks (Named Arguments)
tags: shortcode paired special-block arguments named
Description/Summary
Tests for paired shortcodes with named arguments.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.
Paired non-markdown (default) shortcode #
In the below example, "foo" will be the arg1 argument, and
"color:green;" will be the arg2 argument.
- arg1: foo
- arg2: color:green;
Page (Debug)
| Page Variable | Value | |
|---|---|---|
| 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 |
| |
| NextPage | Page using the Headless Page Bundle X | |
| PrevPage | Paired Shortcodes using special blocks (No Arguments) | |
| NextInSection | Page using the Headless Page Bundle X | |
| PrevInSection | Paired Shortcodes using special blocks (No Arguments) |
Page Params (Debug)
| Key | Type | Value |
|---|---|---|
| description | string | "Tests for paired shortcodes with named arguments." |
| draft | bool | false |
| iscjklanguage | bool | false |
| lastmod | time.Time | 2021-12-13 14:31:25 -0500 -0500 |
| tags | []string | "shortcode" "paired" "special-block" "arguments" "named" |
| title | string | "Paired shortcodes using special blocks (Named Arguments)" |
File Object (Debug)
| FileInfo Variable | Value |
|---|---|
| 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" |