.Kind (page): .Type (posts) / .Layout ()
Bundle: n/a (regular page)
[ categories | tags | search ]
ox-hugo Test Site

This is the test site for the ox-hugo package for Emacs/Org-mode.

It is updated automatically after each commit to the ox-hugo repo. It was last updated on Mar 05, 2024 19:24 UTC.


This page was created/modified in commit 2bd84cc "Refactor headline -> heading for consistency" on 2022-01-03.
Markdown source of this page

Inheriting tags

categories: cat1 cat2

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


Description/Summary

If user specifies tags to the post subtree heading, those tags get added to the set of default tags set in #+filetags (and the ones inherited). For the inheritance of tags from parent headings 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 heading, those tags get added to the set of default tags set in #+filetags (and the ones inherited). For the inheritance of tags from parent headings 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 headings 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://ox-hugo.scripter.co/test/posts/inheriting-tags/"
RelPermalink "/posts/inheriting-tags/"
Data
page.Data{} (type:page.Data)
NextPageIndented source block
PrevPageInline code blocks
NextInSectionIndented source block
PrevInSectionInline code blocks

Page Params (Debug)

KeyTypeValue
categories[]string "cat1" "cat2"
draftbool false
iscjklanguagebool false
lastmodtime.Time 2022-01-03 14:27:58 -0500 -0500
tags[]string "alpha" "beta" "hyphened-tag" "tag with lot of words" "super" "gamma" "delta" "two words"
titlestring "Inheriting tags"

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.101.0 (commit 466fa43c16709b4483689930a4f9ac8add5c9f66) . This site is powered by Netlify.
[Test Site home | ox-hugo home]