Commit 16b5c61b authored by Kaushal Modi's avatar Kaushal Modi

Change few front-matter keys

parent 09b5b11a
......@@ -11,27 +11,36 @@
* Miscellaneous :@miscellaneous:
** Casing of Front-matter Keys :front_matter:casing:@discourse:
:PROPERTIES:
:EXPORT_HUGO_CUSTOM_FRONT_MATTER: :lowercase 1 :snake_case 2 :UpperCamelCase 3 :lowerCamelCase 4 :columnSize "four"
:EXPORT_HUGO_TYPE: dummy
:EXPORT_HUGO_LAYOUT: fm-casing
:END:
*** Casing of Front-matter Keys (Regular Page) :regular_page:
:PROPERTIES:
:EXPORT_FILE_NAME: casing-of-front-matter-keys-regular-page
:EXPORT_HUGO_CUSTOM_FRONT_MATTER: :lowercase 1 :UpperCamelCase 2 :lowerCamelCase 3 :snake_case 4
:END:
This is a regular page.
[[https://discourse.gohugo.io/t/arent-all-front-matter-parameters-lower-cased-internally/11050][Discussion]]
*** Casing of Front-matter Keys (Leaf Bundle) :leaf:bundle:page_bundle:
*** Leaf Bundle :leaf:bundle:page_bundle:
**** Casing of Front-matter Keys (Leaf Bundle)
:PROPERTIES:
:EXPORT_HUGO_BUNDLE: casing-of-front-matter-keys-leaf-bundle
:EXPORT_FILE_NAME: index
:EXPORT_HUGO_CUSTOM_FRONT_MATTER: :lowercase 5 :UpperCamelCase 6 :lowerCamelCase 7 :snake_case 8
:END:
This is a leaf bundle Index page.
[[https://discourse.gohugo.io/t/arent-all-front-matter-parameters-lower-cased-internally/11050][Discussion]]
*** Casing of Front-matter Keys (Headless Leaf Bundle) :leaf:bundle:page_bundle:headless:
**** Casing of Front-matter Keys (Headless Leaf Bundle) :headless:
:PROPERTIES:
:EXPORT_HUGO_BUNDLE: casing-of-front-matter-keys-headless-leaf-bundle
:EXPORT_FILE_NAME: index
:EXPORT_HUGO_HEADLESS: true
:EXPORT_HUGO_CUSTOM_FRONT_MATTER: :lowercase 9 :UpperCamelCase 10 :lowerCamelCase 11 :snake_case 12
:END:
This is a Headless leaf bundle Index page.
[[https://discourse.gohugo.io/t/arent-all-front-matter-parameters-lower-cased-internally/11050][Discussion]]
** Page Kinds
:PROPERTIES:
......
......@@ -7,11 +7,12 @@ categories = ["miscellaneous", "discourse"]
type = "dummy"
draft = false
headless = true
lowercase = 1
snake_case = 2
UpperCamelCase = 3
lowerCamelCase = 4
columnSize = "four"
lowercase = 9
UpperCamelCase = 10
lowerCamelCase = 11
snake_case = 12
+++
This is a Headless leaf bundle Index page.
[Discussion](https://discourse.gohugo.io/t/arent-all-front-matter-parameters-lower-cased-internally/11050)
......@@ -6,11 +6,12 @@ tags = ["front-matter", "casing", "leaf", "bundle", "page-bundle"]
categories = ["miscellaneous", "discourse"]
type = "dummy"
draft = false
lowercase = 1
snake_case = 2
UpperCamelCase = 3
lowerCamelCase = 4
columnSize = "four"
lowercase = 5
UpperCamelCase = 6
lowerCamelCase = 7
snake_case = 8
+++
This is a leaf bundle Index page.
[Discussion](https://discourse.gohugo.io/t/arent-all-front-matter-parameters-lower-cased-internally/11050)
......@@ -7,10 +7,11 @@ categories = ["miscellaneous", "discourse"]
type = "dummy"
draft = false
lowercase = 1
snake_case = 2
UpperCamelCase = 3
lowerCamelCase = 4
columnSize = "four"
UpperCamelCase = 2
lowerCamelCase = 3
snake_case = 4
+++
This is a regular page.
[Discussion](https://discourse.gohugo.io/t/arent-all-front-matter-parameters-lower-cased-internally/11050)
......@@ -84,20 +84,12 @@
<td>{{ .Params.lower_camel_case }}</td>
</tr>
<tr>
<tr>
<td><strong>columnSize</strong></td>
<td>{{ .Params.columnsize }}</td>
<td>{{ .Params.ColumnSize }}</td>
<td>{{ .Params.columnSize }}</td>
<td>{{ .Params.column_size }}</td>
</tr>
<tr>
<td><strong>snake_case</strong></td>
<td>{{ .Params.snakecase }}</td>
<td>{{ .Params.SnakeCase }}</td>
<td>{{ .Params.snakeCase }}</td>
<td>{{ .Params.snake_case }}</td>
</tr>
<td><strong>snake_case</strong></td>
<td>{{ .Params.snakecase }}</td>
<td>{{ .Params.SnakeCase }}</td>
<td>{{ .Params.snakeCase }}</td>
<td>{{ .Params.snake_case }}</td>
</tr>
</table>
{{ $headless := .Site.GetPage "page" "casing-of-front-matter-keys-headless-leaf-bundle" }}
......@@ -134,13 +126,6 @@
<td>{{ .Params.lowerCamelCase }}</td>
<td>{{ .Params.lower_camel_case }}</td>
</tr>
<tr>
<td><strong>columnSize</strong></td>
<td>{{ .Params.columnsize }}</td>
<td>{{ .Params.ColumnSize }}</td>
<td>{{ .Params.columnSize }}</td>
<td>{{ .Params.column_size }}</td>
</tr>
<tr>
<td><strong>snake_case</strong></td>
<td>{{ .Params.snakecase }}</td>
......@@ -182,13 +167,6 @@
<td>{{ $headless.Params.lowerCamelCase }}</td>
<td>{{ $headless.Params.lower_camel_case }}</td>
</tr>
<tr>
<td><strong>columnSize</strong></td>
<td>{{ $headless.Params.columnsize }}</td>
<td>{{ $headless.Params.ColumnSize }}</td>
<td>{{ $headless.Params.columnSize }}</td>
<td>{{ $headless.Params.column_size }}</td>
</tr>
<tr>
<td><strong>snake_case</strong></td>
<td>{{ $headless.Params.snakecase }}</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment