.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

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://hugo-sandbox.netlify.com/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)

maps.Params{"date":time.Date(2017, time.July, 18, 0, 0, 0, 0, time.UTC), "draft":false, "iscjklanguage":false, "lastmod":time.Date(2017, time.November, 2, 10, 12, 52, 0, time.Location("")), "menu":maps.Params{"something here":maps.Params{"identifier":"ov-partial", "parent":"posts", "weight":10}}, "publishdate":time.Date(2017, time.July, 18, 0, 0, 0, 0, time.UTC), "tags":[]string{"menu"}, "title":"Overriding few menu properties"} (type:maps.Params)

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.92.0 (commit b3549403) .

[Back to Hugo Sandbox home]