Replace custom keys
tags: front-matter keys replace custom
Description/Summary
This post will have the foo key in front-matter replaced with myfoo and bar replaced with mybar.
Content
This post will have the foo key in front-matter replaced with
myfoo and bar replaced with mybar.
Page (Debug)
| Page Variable | Value | |
|---|---|---|
| Name | "Replace custom keys" | |
| Title | "Replace custom keys" | |
| ResourceType | "page" | |
| Kind | "page" | |
| Section | "posts" | |
| Draft | false | |
| Type | "posts" | |
| Layout | "" | |
| Permalink | "https://ox-hugo.scripter.co/test/posts/replace-custom-keys/" | |
| RelPermalink | "/posts/replace-custom-keys/" | |
| Data |
| |
| NextPage | Remove a front-matter key | |
| PrevPage | Replace keys using multiple properties | |
| NextInSection | Remove a front-matter key | |
| PrevInSection | Replace keys using multiple properties |
Page Params (Debug)
| Key | Type | Value |
|---|---|---|
| draft | bool | false |
| iscjklanguage | bool | false |
| lastmod | time.Time | 2018-01-25 10:29:38 -0500 -0500 |
| mybar | int64 | 2 |
| myfoo | int64 | 1 |
| tags | []string | "front-matter" "keys" "replace" "custom" |
| title | string | "Replace custom keys" |
File Object (Debug)
| FileInfo Variable | Value |
|---|---|
| UniqueID | "b463440a1195f3ccebf9edc5327e5774" |
| BaseFileName | "replace-custom-keys" |
| TranslationBaseName | "replace-custom-keys" |
| Lang | "en" |
| Section | "posts" |
| LogicalName | "replace-custom-keys.md" |
| Dir | "posts/" |
| Ext | "md" |
| Path | "posts/replace-custom-keys.md" |