Menu Meta Data in YAML Front Matter
Description/Summary
Testing the addition of menu meta data to the YAML front matter. Here the front matter format is set to YAML using the #+HUGO_FRONT_MATTER_FORMAT keyword. Later only the weight and identifier menu properties are overridden using EXPORT_HUGO_MENU_OVERRIDE key in the property drawer.
Content
Testing the addition of menu meta data to the YAML front
matter. Here the front matter format is set to YAML using the
#+HUGO_FRONT_MATTER_FORMAT
keyword.
Later only the weight and identifier menu properties are
overridden using EXPORT_HUGO_MENU_OVERRIDE
key in the property drawer.
Page (Debug)
Page Variable | Value | |
---|---|---|
Name | "Menu Meta Data in YAML Front Matter" | |
Title | "Menu Meta Data in YAML Front Matter" | |
ResourceType | "page" | |
Kind | "page" | |
Section | "posts" | |
Draft | false | |
Type | "posts" | |
Layout | "" | |
Permalink | "https://hugo-sandbox.netlify.com/posts/menu-meta-data-yaml/" | |
RelPermalink | "/posts/menu-meta-data-yaml/" | |
Data |
| |
NextPage | Menu Meta Data in TOML Front Matter | |
PrevPage | Overriding few menu properties | |
NextInSection | Menu Meta Data in TOML Front Matter | |
PrevInSection | Overriding few menu properties |
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{"main":maps.Params{"identifier":"yaml-menu-override", "parent":"posts", "weight":25}}, "publishdate":time.Date(2017, time.July, 18, 0, 0, 0, 0, time.UTC), "tags":[]string{"menu", "yaml"}, "title":"Menu Meta Data in YAML Front Matter"} (type:maps.Params) |
File Object (Debug)
FileInfo Variable | Value |
---|---|
UniqueID | "523a2212557b7ad5f52b1c8f1e3a7a88" |
BaseFileName | "menu-meta-data-yaml" |
TranslationBaseName | "menu-meta-data-yaml" |
Lang | "en" |
Section | "posts" |
LogicalName | "menu-meta-data-yaml.md" |
Dir | "posts/" |
Ext | "md" |
Path | "posts/menu-meta-data-yaml.md" |