.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

Inheriting tags

categories: cat1 cat2

tags: hyphened-tag alpha beta super gamma delta two words


Description/Summary

If user specifies tags to the post subtree headline, those tags get added to the set of default tags set in #+FILETAGS (and the ones inherited). For the inheritance of tags from parent headlines and #+FILETAGS to work, org-use-tag-inheritance needs to be set appropriately if changed from the default value of t. These tags are collected together and assigned to the Hugo tags front matter variable for this post. When setting categories via Org-style tags, prefix the tags with “@”.


Content

If user specifies tags to the post subtree headline, those tags get added to the set of default tags set in #+FILETAGS (and the ones inherited). For the inheritance of tags from parent headlines and #+FILETAGS to work, org-use-tag-inheritance needs to be set appropriately if changed from the default value of t. These tags are collected together and assigned to the Hugo tags front matter variable for this post.

When setting categories via Org-style tags, prefix the tags with “@”. That “@” is used as a special character for ox-hugo to identify those tags to be used as Hugo categories. This applies to categories added as Org tags to headlines as well as #+FILETAGS.


Page (Debug)

Page VariableValue
Name "Inheriting tags"
Title "Inheriting tags"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://hugo-sandbox.netlify.com/posts/inheriting-tags/"
RelPermalink "/posts/inheriting-tags/"
Data
page.Data{} (type:page.Data)
NextPageIndented source block
PrevPageInternal shortcode for table
NextInSectionIndented source block
PrevInSectionMulti-line bold

Page Params (Debug)

maps.Params{"categories":[]string{"cat1", "cat2"}, "draft":false, "iscjklanguage":false, "lastmod":time.Date(2017, time.November, 2, 10, 12, 52, 0, time.Location("")), "tags":[]string{"hyphened-tag", "alpha", "beta", "super", "gamma", "delta", "two words"}, "title":"Inheriting tags"} (type:maps.Params)

File Object (Debug)

FileInfo VariableValue
UniqueID "b7300412a580294acf3bd1d09d928035"
BaseFileName "inheriting-tags"
TranslationBaseName "inheriting-tags"
Lang "en"
Section "posts"
LogicalName "inheriting-tags.md"
Dir "posts/"
Ext "md"
Path "posts/inheriting-tags.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]