Custom front matter in multiple lines
tags: custom-fm
Description/Summary
From (org) Property syntax: It is also possible to add to the values of inherited properties. The following results in the ‘genres’ property having the value “Classic Baroque” under the ‘Goldberg Variations’ subtree. * CD collection ** Classic :PROPERTIES: :GENRES: Classic :END: *** Goldberg Variations :PROPERTIES: :Title: Goldberg Variations :Composer: J.S. Bach :Artist: Glen Gould :Publisher: Deutsche Grammophon :NDisks: 1 :GENRES+: Baroque :END:
Content
From (org) Property syntax:
It is also possible to add to the values of inherited properties. The following results in the ‘genres’ property having the value “Classic Baroque” under the ‘Goldberg Variations’ subtree.
* CD collection
** Classic
:PROPERTIES:
:GENRES: Classic
:END:
*** Goldberg Variations
:PROPERTIES:
:Title: Goldberg Variations
:Composer: J.S. Bach
:Artist: Glen Gould
:Publisher: Deutsche Grammophon
:NDisks: 1
:GENRES+: Baroque
:END:
Page (Debug)
Page Variable | Value | |
---|---|---|
Name | "Custom front matter in multiple lines" | |
Title | "Custom front matter in multiple lines" | |
ResourceType | "page" | |
Kind | "page" | |
Section | "posts" | |
Draft | false | |
Type | "posts" | |
Layout | "" | |
Permalink | "https://hugo-sandbox.netlify.com/posts/custom-front-matter-multiple-lines/" | |
RelPermalink | "/posts/custom-front-matter-multiple-lines/" | |
Data |
| |
NextPage | Cat A post 1 | |
PrevPage | Custom front matter in one line | |
NextInSection | Cat A post 1 | |
PrevInSection | Custom front matter in one line |
Page Params (Debug)
maps.Params{"alpha":1, "baz":"zoo", "beta":"two words", "date":time.Date(2017, time.July, 24, 0, 0, 0, 0, time.UTC), "draft":false, "foo":"bar", "gamma":10, "iscjklanguage":false, "lastmod":time.Date(2017, time.November, 2, 10, 12, 52, 0, time.Location("")), "publishdate":time.Date(2017, time.July, 24, 0, 0, 0, 0, time.UTC), "tags":[]string{"custom-fm"}, "title":"Custom front matter in multiple lines"} (type:maps.Params) |
File Object (Debug)
FileInfo Variable | Value |
---|---|
UniqueID | "5bc478c4578e62320c8735e4c48a2d82" |
BaseFileName | "custom-front-matter-multiple-lines" |
TranslationBaseName | "custom-front-matter-multiple-lines" |
Lang | "en" |
Section | "posts" |
LogicalName | "custom-front-matter-multiple-lines.md" |
Dir | "posts/" |
Ext | "md" |
Path | "posts/custom-front-matter-multiple-lines.md" |