.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 Jun 26, 2022 21:18 UTC.


This page was created/modified in commit c24ea79 "feat!: Use tomelr.el for TOML generation" on 2022-05-03.
Markdown source of this page

Overriding few menu properties

tags: menu


Description/Summary

For this post, we should see just the menu weight and identifier properties get overridden. You need to set unique menu identifiers, else you get a Hugo error like this: ERROR 2017/07/18 12:32:14 Two or more menu items have the same name/identifier in Menu "main": "menu-meta-data-in-yaml-front-matter". Rename or set an unique identifier.


Content

For this post, we should see just the menu weight and identifier properties get overridden.

You need to set unique menu identifiers, else you get a Hugo error like this:

ERROR 2017/07/18 12:32:14 Two or more menu items have the same name/identifier in Menu "main": "menu-meta-data-in-yaml-front-matter".
Rename or set an unique identifier.

Page (Debug)

Page VariableValue
Name "Overriding few menu properties"
Title "Overriding few menu properties"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://ox-hugo.scripter.co/test/posts/menu-alist-meta-data-toml-override-partial/"
RelPermalink "/posts/menu-alist-meta-data-toml-override-partial/"
Data
page.Data{} (type:page.Data)
NextPageMenu Meta Data in YAML Front Matter
PrevPageOverriding menu properties completely
NextInSectionMenu Meta Data in YAML Front Matter
PrevInSectionOverriding menu properties completely

Page Params (Debug)

KeyTypeValue
datetime.Time 2017-07-18 00:00:00 +0000 UTC
draftbool false
iscjklanguagebool false
lastmodtime.Time 2022-05-03 00:48:15 -0400 -0400
menumaps.Params
KeyTypeValue
something heremaps.Params
KeyTypeValue
identifierstring "ov-partial"
parentstring "posts"
weightint64 10
publishdatetime.Time 2017-07-18 00:00:00 +0000 UTC
tags[]string "menu"
titlestring "Overriding few menu properties"

File Object (Debug)

FileInfo VariableValue
UniqueID "d467289934bffe3e331019beab625ebf"
BaseFileName "menu-alist-meta-data-toml-override-partial"
TranslationBaseName "menu-alist-meta-data-toml-override-partial"
Lang "en"
Section "posts"
LogicalName "menu-alist-meta-data-toml-override-partial.md"
Dir "posts/"
Ext "md"
Path "posts/menu-alist-meta-data-toml-override-partial.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]