Remove a front-matter key
tags:
front-matter
keys
replace
remove
Description/Summary
This test removes the
foo
front-matter key from the exported file
(and replaces
bar
key with
zoo
).
Content
Page (Debug)
Page Variable | Value |
Name |
"Remove a front-matter key"
|
Title |
"Remove a front-matter key"
|
ResourceType |
"page"
|
Kind |
"page"
|
Section |
"posts"
|
Draft |
false
|
Type |
"posts"
|
Layout |
""
|
Permalink |
"https://ox-hugo.scripter.co/test/posts/remove-a-front-matter-key/"
|
RelPermalink |
"/posts/remove-a-front-matter-key/"
|
Data |
page.Data{} (type:page.Data) |
|
NextPage | Radio targets |
PrevPage | Replace custom keys |
NextInSection | Radio targets |
PrevInSection | Replace custom keys |
Page Params (Debug)
Key | Type | Value |
description | string |
" This test removes the `foo` front-matter key from the exported file\n (and replaces `bar` key with `zoo`).\n "
|
draft | bool |
false
|
iscjklanguage | bool |
false
|
lastmod | time.Time |
2018-08-08 10:53:38 -0400 -0400
|
tags | []string |
"front-matter"
"keys"
"replace"
"remove"
|
title | string |
"Remove a front-matter key"
|
zoo | int64 |
2
|
File Object (Debug)
FileInfo Variable | Value |
UniqueID |
"171a8d9059a8d8c406946a236035c0d2"
|
BaseFileName |
"remove-a-front-matter-key"
|
TranslationBaseName |
"remove-a-front-matter-key"
|
Lang |
"en"
|
Section |
"posts"
|
LogicalName |
"remove-a-front-matter-key.md"
|
Dir |
"posts/"
|
Ext |
"md"
|
Path |
"posts/remove-a-front-matter-key.md"
|