Simply set the "newkey" to "nil". See https://ox-hugo.scripter.co/doc/replace-front-matter-keys/#removing-keysmaster
parent
99246ed764
commit
cb2ed1de07
4 changed files with 52 additions and 4 deletions
@ -0,0 +1,10 @@ |
||||
+++ |
||||
title = "Remove a front-matter key" |
||||
description = """ |
||||
This test removes the `foo` front-matter key from the exported file |
||||
(and replaces `bar` key with `zoo`). |
||||
""" |
||||
tags = ["front-matter", "keys", "replace", "remove"] |
||||
draft = false |
||||
zoo = 2 |
||||
+++ |
||||
Loading…
Reference in new issue