Custom front matter with nested maps in TOML
tags:
custom-fm
TOML-table
nested-map
Description/Summary
Custom TOML front-matter with TOML tables.
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
|
| strings-symbols | []interface {} |
"abc"
"def"
"two words"
|
|
| description | string |
"Custom TOML front-matter with TOML tables."
|
| dog | maps.Params |
| Key | Type | Value |
| eyes | int64 |
2
|
| friends | []interface {} |
"poo"
"boo"
|
| legs | int64 |
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 |
2025-02-12 13:32:58 -0500 -0500
|
| 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 TOML"
|
File Object (Debug)
| FileInfo Variable | Value |
| UniqueID |
"8dea056fa993f402c429ae5cce136f4b"
|
| BaseFileName |
"custom-front-matter-with-nested-maps-toml"
|
| TranslationBaseName |
"custom-front-matter-with-nested-maps-toml"
|
| Lang |
"en"
|
| Section |
"posts"
|
| LogicalName |
"custom-front-matter-with-nested-maps-toml.md"
|
| Dir |
"posts/"
|
| Ext |
"md"
|
| Path |
"posts/custom-front-matter-with-nested-maps-toml.md"
|