.Kind (page): .Type (posts) / .Layout ()
Bundle: n/a (regular page)
[ categories | projects | tags | search ]
Hugo Sandbox

This is an unofficial Hugo sandbox site to try to replicate possible bugs in hugo.

It is updated automatically after each commit to the hugo-sandbox repo. It was last updated on Jan 20, 2022 13:08 UTC.


This page was created/modified in commit 669d193 "Copy ox-hugo test site" on 2017-11-02.
Markdown source of this page

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 VariableValue
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://hugo-sandbox.netlify.com/posts/hyphens-and-spaces-in-categories/"
RelPermalink "/posts/hyphens-and-spaces-in-categories/"
Data
page.Data{} (type:page.Data)
NextPageHugo auto weight ineffective for per-file exports
PrevPageHyphens and spaces in tags
NextInSectionHugo auto weight ineffective for per-file exports
PrevInSectionHyphens and spaces in tags

Page Params (Debug)

maps.Params{"categories":[]string{"an-apple a_pear", "good bad and ugly"}, "draft":false, "iscjklanguage":false, "lastmod":time.Date(2017, time.November, 2, 10, 12, 52, 0, time.Location("")), "title":"Hyphens and spaces in categories"} (type:maps.Params)

File Object (Debug)

FileInfo VariableValue
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"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.92.0 (commit b3549403) .

[Back to Hugo Sandbox home]