Specified locale in front-matter
tags:
front-matter
locale
Description/Summary
Specify the locale using
:EXPORT_HUGO_LOCALE: es_ES property.
Content
Locale exporting is enabled using :EXPORT_HUGO_WITH_LOCALE: t in the
post’s parent subtree.
Page (Debug)
| Page Variable | Value |
| Name |
"Specified locale in front-matter"
|
| Title |
"Specified locale in front-matter"
|
| ResourceType |
"page"
|
| Kind |
"page"
|
| Section |
"posts"
|
| Draft |
false
|
| Type |
"posts"
|
| Layout |
""
|
| Permalink |
"https://ox-hugo.scripter.co/test/posts/locale-specified/"
|
| RelPermalink |
"/posts/locale-specified/"
|
| Data |
| page.Data{} (type:page.Data) |
|
| NextPage | Special Blocks |
| PrevPage | sub section 1 |
| NextInSection | Special Blocks |
| PrevInSection | Sub/superscripts don't require braces |
Page Params (Debug)
| Key | Type | Value |
| description | string |
"Specify the locale using `:EXPORT_HUGO_LOCALE: es_ES` property."
|
| draft | bool |
false
|
| iscjklanguage | bool |
false
|
| lastmod | time.Time |
2018-08-28 10:54:39 -0400 -0400
|
| locale | string |
"es_ES"
|
| tags | []string |
"front-matter"
"locale"
|
| title | string |
"Specified locale in front-matter"
|
File Object (Debug)
| FileInfo Variable | Value |
| UniqueID |
"98b01630b592811f0b1a81f14143c1ba"
|
| BaseFileName |
"locale-specified"
|
| TranslationBaseName |
"locale-specified"
|
| Lang |
"en"
|
| Section |
"posts"
|
| LogicalName |
"locale-specified.md"
|
| Dir |
"posts/"
|
| Ext |
"md"
|
| Path |
"posts/locale-specified.md"
|