Hugo keyword
Description/Summary
Stuff followed the#+hugo:
exports as-is except when it is “more”
Content
As the content following #+hugo:
exports as-is to the Markdown, that
content should be what Hugo can parse (i.e. Markdown, shortcodes,
etc).
This Org snippet:
#+hugo: This `relref` links to [this same page]({{< relref "hugo-keyword" >}}).
renders as below:
This relref
links to this same page.
Using #+hugo:
for unpaired shortcodes with named arguments
#
ox-hugo
Issue #624
#+hugo: {{< myshortcode-named arg1="horizontal" arg2="static/img/legacy/works/land" >}}
renders as below:
- arg1: horizontal
- arg2: static/img/legacy/works/land
Page (Debug)
Page Variable | Value | |
---|---|---|
Name | "Hugo keyword" | |
Title | "Hugo keyword" | |
ResourceType | "page" | |
Kind | "page" | |
Section | "posts" | |
Draft | false | |
Type | "posts" | |
Layout | "" | |
Permalink | "https://ox-hugo.scripter.co/test/posts/hugo-keyword/" | |
RelPermalink | "/posts/hugo-keyword/" | |
Data |
| |
NextPage | Hugo auto weight ineffective for per-file exports | |
PrevPage | HUGO_DRAFT false, DONE state | |
NextInSection | Hugo auto weight ineffective for per-file exports | |
PrevInSection | HUGO_DRAFT false, DONE state |
Page Params (Debug)
Key | Type | Value |
---|---|---|
description | string | " Stuff followed the `#+hugo:` exports as-is except when it is \"more\"\n " |
draft | bool | false |
iscjklanguage | bool | false |
lastmod | time.Time | 2022-05-03 00:48:15 -0400 -0400 |
tags | []string | "body" "keyword" "hugo" |
title | string | "Hugo keyword" |
File Object (Debug)
FileInfo Variable | Value |
---|---|
UniqueID | "7de77456d6b1eb556bc679c88c2fb756" |
BaseFileName | "hugo-keyword" |
TranslationBaseName | "hugo-keyword" |
Lang | "en" |
Section | "posts" |
LogicalName | "hugo-keyword.md" |
Dir | "posts/" |
Ext | "md" |
Path | "posts/hugo-keyword.md" |