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 Variable | Value | |
---|---|---|
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 |
| |
NextPage | Menu Meta Data in YAML Front Matter | |
PrevPage | Overriding menu properties completely | |
NextInSection | Menu Meta Data in YAML Front Matter | |
PrevInSection | Overriding menu properties completely |
Page Params (Debug)
Key | Type | Value | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
date | time.Time | 2017-07-18 00:00:00 +0000 UTC | ||||||||||||||||||
draft | bool | false | ||||||||||||||||||
iscjklanguage | bool | false | ||||||||||||||||||
lastmod | time.Time | 2022-05-03 00:48:15 -0400 -0400 | ||||||||||||||||||
menu | maps.Params |
| ||||||||||||||||||
publishdate | time.Time | 2017-07-18 00:00:00 +0000 UTC | ||||||||||||||||||
tags | []string | "menu" | ||||||||||||||||||
title | string | "Overriding few menu properties" |
File Object (Debug)
FileInfo Variable | Value |
---|---|
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" |