Export block Hugo
tags: export-block hugo
Description/Summary
Testing#+begin_export hugo .. #+end_export blocks.
Content
This will get exported only for Hugo exports, verbatim.
Using export hugo block for unpaired shortcodes with named arguments #
ox-hugo Issue #624
Below:
#+begin_export hugo
{{< myshortcode-named
arg1="horizontal"
arg2="static/img/legacy/works/land"
>}}
#+end_export
renders as:
- arg1: horizontal
- arg2: static/img/legacy/works/land
Page (Debug)
| Page Variable | Value | |
|---|---|---|
| Name | "Export block Hugo" | |
| Title | "Export block Hugo" | |
| ResourceType | "page" | |
| Kind | "page" | |
| Section | "posts" | |
| Draft | false | |
| Type | "posts" | |
| Layout | "" | |
| Permalink | "https://ox-hugo.scripter.co/test/posts/export_block_hugo/" | |
| RelPermalink | "/posts/export_block_hugo/" | |
| Data |
| |
| NextPage | Export block HTML | |
| PrevPage | Export block Markdown | |
| NextInSection | Export block HTML | |
| PrevInSection | Export block Markdown |
Page Params (Debug)
| Key | Type | Value |
|---|---|---|
| description | string | "Testing `#+begin_export hugo` .. `#+end_export` blocks." |
| draft | bool | false |
| iscjklanguage | bool | false |
| lastmod | time.Time | 2022-04-23 21:36:43 -0400 -0400 |
| tags | []string | "export-block" "hugo" |
| title | string | "Export block Hugo" |
File Object (Debug)
| FileInfo Variable | Value |
|---|---|
| UniqueID | "4bcabb331c76104bf774194f5713b6e2" |
| BaseFileName | "export_block_hugo" |
| TranslationBaseName | "export_block_hugo" |
| Lang | "en" |
| Section | "posts" |
| LogicalName | "export_block_hugo.md" |
| Dir | "posts/" |
| Ext | "md" |
| Path | "posts/export_block_hugo.md" |