Replace keys using multiple properties
Description/Summary
This post will have the tags key in front-matter replaced with keywords and categories replaced with cats.
Content
This post will have the tags
key in front-matter replaced with
keywords
and categories
replaced with cats
.
Page (Debug)
Page Variable | Value |
Name |
"Replace keys using multiple properties"
|
Title |
"Replace keys using multiple properties"
|
ResourceType |
"page"
|
Kind |
"page"
|
Section |
"posts"
|
Draft |
false
|
Type |
"posts"
|
Layout |
""
|
Permalink |
"https://ox-hugo.scripter.co/test/posts/replace-keys-using-multiple-properties/"
|
RelPermalink |
"/posts/replace-keys-using-multiple-properties/"
|
Data |
page.Data{} (type:page.Data) |
|
NextPage | Replace custom keys |
PrevPage | Search |
NextInSection | Replace custom keys |
PrevInSection | Setting empty outputs is fine |
Page Params (Debug)
Key | Type | Value |
cats | []string |
"test-cat-x"
|
draft | bool |
false
|
iscjklanguage | bool |
false
|
keywords | []string |
"front-matter"
"keys"
"replace"
"tags"
"categories"
|
lastmod | time.Time |
2018-01-24 17:31:46 -0500 -0500
|
title | string |
"Replace keys using multiple properties"
|
File Object (Debug)
FileInfo Variable | Value |
UniqueID |
"6d501644a3a773088eea2b151097d87d"
|
BaseFileName |
"replace-keys-using-multiple-properties"
|
TranslationBaseName |
"replace-keys-using-multiple-properties"
|
Lang |
"en"
|
Section |
"posts"
|
LogicalName |
"replace-keys-using-multiple-properties.md"
|
Dir |
"posts/"
|
Ext |
"md"
|
Path |
"posts/replace-keys-using-multiple-properties.md"
|