.Kind (page): .Type (dummy) / .Layout (fm-casing)
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 Oct 09, 2018 14:48 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 (Regular Page)

categories: miscellaneous discourse

tags: front-matter casing regular-page

Layout file: fm-casing.html

Content

This is a regular page.

Discussion

Accessing Params from this page

Key .Params.foobar .Params.FooBar .Params.fooBar .Params.foo_bar
lowercase 1 1 1
UpperCamelCase 2 2 2
lowerCamelCase 3 3 3
snake_case 4

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
UpperCamelCase 10
lowerCamelCase 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 ""
RSSLink ""
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 (Regular Page)"
Title "Casing of Front-matter Keys (Regular Page)"
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-regular-page/"
RelPermalink "/posts/casing-of-front-matter-keys-regular-page/"
RSSLink ""
Data
KeyTypeValue
Pageshugolib.Pages
NextPageCasing of Front-matter Keys (Leaf Bundle)
PrevPageCustom date key in front-matter
NextInSectionCasing of Front-matter Keys (Leaf Bundle)
PrevInSectionCustom date key in front-matter

Page Params (Debug)

KeyTypeValue
author[]string "Kaushal Modi"
categories[]string "miscellaneous" "discourse"
draftbool false
iscjklanguagebool false
lastmodtime.Time 2018-03-14 23:43:11 -0400 -0400
layoutstring "fm-casing"
lowercamelcaseint64 3
lowercaseint64 1
snake_caseint64 4
tags[]string "front-matter" "casing" "regular-page"
titlestring "Casing of Front-matter Keys (Regular Page)"
typestring "dummy"
uppercamelcaseint64 2

File Object (Debug)

FileInfo VariableValue
UniqueID "c0945d30a12c51dacbb13722967e3d4a"
BaseFileName "casing-of-front-matter-keys-regular-page"
TranslationBaseName "casing-of-front-matter-keys-regular-page"
Lang "en"
Section "posts"
LogicalName "casing-of-front-matter-keys-regular-page.md"
Dir "posts/"
Ext "md"
Path "posts/casing-of-front-matter-keys-regular-page.md"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.50-DEV (commit d5d50e2f, using Chroma commit d5ca12b) .

[Back to Hugo Sandbox home]