Custom front matter with nested maps in YAML
tags:
custom-fm
TOML-Table
nested-map
Description/Summary
Custom YAML front-matter with nested maps.
Content
ox-hugo
Issue #139
Page (Debug)
Page Params (Debug)
Key | Type | Value |
collection | maps.Params |
Key | Type | Value |
animals | []interface {} |
"dog"
"cat"
"penguin"
"mountain gorilla"
|
booleans | []interface {} |
true
false
|
floats | []interface {} |
12.3
-5
-1.7e-05
|
integers | []interface {} |
123
-5
17
1234
|
nonnil | bool |
true
|
nothing | bool |
false
|
strings-symbols | []interface {} |
"abc"
"def"
"two words"
|
|
description | string |
"Custom YAML front-matter with nested maps."
|
dog | maps.Params |
Key | Type | Value |
eyes | int |
2
|
friends | []interface {} |
"poo"
"boo"
|
legs | int |
4
|
|
draft | bool |
false
|
empty_string_value | maps.Params |
Key | Type | Value |
empty | string |
""
|
|
header | maps.Params |
Key | Type | Value |
caption | string |
"stay hungry, stay foolish"
|
image | string |
"projects/Readingabook.jpg"
|
|
iscjklanguage | bool |
false
|
lastmod | time.Time |
2018-06-12 17:10:13 -0400 -0400
|
random | maps.Params |
Key | Type | Value |
foo | string |
"bar"
|
|
tags | []string |
"custom-fm"
"TOML-Table"
"nested-map"
|
title | string |
"Custom front matter with nested maps in YAML"
|
File Object (Debug)
FileInfo Variable | Value |
UniqueID |
"eec18097bf06806df8a4c3b71f6fcb48"
|
BaseFileName |
"custom-front-matter-with-nested-maps-yaml"
|
TranslationBaseName |
"custom-front-matter-with-nested-maps-yaml"
|
Lang |
"en"
|
Section |
"posts"
|
LogicalName |
"custom-front-matter-with-nested-maps-yaml.md"
|
Dir |
"posts/"
|
Ext |
"md"
|
Path |
"posts/custom-front-matter-with-nested-maps-yaml.md"
|