Hyphens and spaces in categories
categories: an-apple a_pear good bad and ugly
Description/Summary
The Org tags do not allow spaces. So the trick we use is replace double underscores with spaces. So an Org tag @abc__def becomes Hugo category abc def.
Content
The Org tags do not allow spaces. So the trick we use is replace double underscores with spaces.
So an Org tag @abc__def becomes Hugo category abc def.
Page (Debug)
| Page Variable | Value | |
|---|---|---|
| Name | "Hyphens and spaces in categories" | |
| Title | "Hyphens and spaces in categories" | |
| ResourceType | "page" | |
| Kind | "page" | |
| Section | "posts" | |
| Draft | false | |
| Type | "posts" | |
| Layout | "" | |
| Permalink | "https://ox-hugo.scripter.co/test/posts/hyphens-and-spaces-in-categories/" | |
| RelPermalink | "/posts/hyphens-and-spaces-in-categories/" | |
| Data |
| |
| NextPage | HUGO_SECTION set in post subtree | |
| PrevPage | Hyphens and spaces in tags | |
| NextInSection | HUGO_DRAFT true, no TODO state | |
| PrevInSection | Hyphens and spaces in tags |
Page Params (Debug)
| Key | Type | Value |
|---|---|---|
| categories | []string | "an-apple a_pear" "good bad and ugly" |
| draft | bool | false |
| iscjklanguage | bool | false |
| lastmod | time.Time | 2017-09-22 11:05:12 -0400 -0400 |
| title | string | "Hyphens and spaces in categories" |
File Object (Debug)
| FileInfo Variable | Value |
|---|---|
| UniqueID | "c4a1fcad0bf66378611b7c5fd6b2fdbc" |
| BaseFileName | "hyphens-and-spaces-in-categories" |
| TranslationBaseName | "hyphens-and-spaces-in-categories" |
| Lang | "en" |
| Section | "posts" |
| LogicalName | "hyphens-and-spaces-in-categories.md" |
| Dir | "posts/" |
| Ext | "md" |
| Path | "posts/hyphens-and-spaces-in-categories.md" |