.Kind (page): .Type (dummy) / .Layout (fm-casing)
Bundle: leaf
[ 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 16b5c61 "Change few front-matter keys" on 2018-03-14.
Markdown source of this page

Casing of Front-matter Keys (Leaf Bundle)

categories: miscellaneous discourse

tags: front-matter casing leaf bundle page-bundle

Layout file: fm-casing.html

Content

This is a leaf bundle Index page.

Discussion

Accessing Params from this page

Key .Params.foobar .Params.FooBar .Params.fooBar .Params.foo_bar
lowercase 5 5 5
UpperCamelCase 6 6 6
lowerCamelCase 7 7 7
snake_case 8

Markdown source of the Headless bundle Index page

Accessing Params from Headless Index page (inside "with")

Key .Params.foobar (in with) .Params.FooBar (in with) .Params.fooBar (in with) .Params.foo_bar (in with)
lowercase 9 9 9
UpperCamelCase 10 10 10
lowerCamelCase 11 11 11
snake_case 12

Accessing Params from Headless Index page (directly)

Key $headless.Params.foobar $headless.Params.FooBar $headless.Params.fooBar $headless.Params.foo_bar
lowercase 9 9 9
UpperCamelCase 10 10 10
lowerCamelCase 11 11 11
snake_case 12

Headless Bundle Index Page (Debug)

Page VariableValue
Name "Casing of Front-matter Keys (Headless Leaf Bundle)"
Title "Casing of Front-matter Keys (Headless Leaf Bundle)"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "dummy"
Layout "fm-casing"
Permalink ""
RelPermalink ""
Data
page.Data{} (type:page.Data)
NextPageNone
PrevPageNone
NextInSectionNone
PrevInSectionNone

Headless Bundle Index Page File Object (Debug)

FileInfo VariableValue
UniqueID "af752d275120fe5b8f869c6a5091f70a"
BaseFileName "index"
TranslationBaseName "index"
Lang "en"
Section "posts"
LogicalName "index.md"
Dir "posts/casing-of-front-matter-keys-headless-leaf-bundle/"
Ext "md"
Path "posts/casing-of-front-matter-keys-headless-leaf-bundle/index.md"

Page (Debug)

Page VariableValue
Name "Casing of Front-matter Keys (Leaf Bundle)"
Title "Casing of Front-matter Keys (Leaf Bundle)"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "dummy"
Layout "fm-casing"
Permalink "https://hugo-sandbox.netlify.com/posts/casing-of-front-matter-keys-leaf-bundle/"
RelPermalink "/posts/casing-of-front-matter-keys-leaf-bundle/"
Data
page.Data{} (type:page.Data)
NextPageBaseURLs with subdirs and absURL/relURL
PrevPageCasing of Front-matter Keys (Regular Page)
NextInSectionBaseURLs with subdirs and absURL/relURL
PrevInSectionCasing of Front-matter Keys (Regular Page)

Page Params (Debug)

maps.Params{"author":[]string{"Kaushal Modi"}, "categories":[]string{"miscellaneous", "discourse"}, "draft":false, "iscjklanguage":false, "lastmod":time.Date(2018, time.March, 14, 23, 43, 11, 0, time.Location("")), "layout":"fm-casing", "lowercamelcase":7, "lowercase":5, "snake_case":8, "tags":[]string{"front-matter", "casing", "leaf", "bundle", "page-bundle"}, "title":"Casing of Front-matter Keys (Leaf Bundle)", "type":"dummy", "uppercamelcase":6} (type:maps.Params)

File Object (Debug)

FileInfo VariableValue
UniqueID "bc28d5910a35b8a83ce15a65fafbd0c0"
BaseFileName "index"
TranslationBaseName "index"
Lang "en"
Section "posts"
LogicalName "index.md"
Dir "posts/casing-of-front-matter-keys-leaf-bundle/"
Ext "md"
Path "posts/casing-of-front-matter-keys-leaf-bundle/index.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]