Swap tags and categories
categories: front-matter keys replace tags categories swap
tags: test-cat-x
Description/Summary
This post will have the tags and categories keys in the front-matter swapped.
Content
This post will have the tags and categories keys in the
front-matter swapped.
Page (Debug)
| Page Variable | Value | |
|---|---|---|
| Name | "Swap tags and categories" | |
| Title | "Swap tags and categories" | |
| ResourceType | "page" | |
| Kind | "page" | |
| Section | "posts" | |
| Draft | false | |
| Type | "posts" | |
| Layout | "" | |
| Permalink | "https://ox-hugo.scripter.co/test/posts/swap-tags-and-categories/" | |
| RelPermalink | "/posts/swap-tags-and-categories/" | |
| Data |
| |
| NextPage | Suppress lastmod non-zero, but date unset | |
| PrevPage | Table caption | |
| NextInSection | Suppress lastmod non-zero, but date unset | |
| PrevInSection | Table caption |
Page Params (Debug)
| Key | Type | Value |
|---|---|---|
| categories | []string | "front-matter" "keys" "replace" "tags" "categories" "swap" |
| draft | bool | false |
| iscjklanguage | bool | false |
| lastmod | time.Time | 2018-01-24 18:29:29 -0500 -0500 |
| tags | []string | "test-cat-x" |
| title | string | "Swap tags and categories" |
File Object (Debug)
| FileInfo Variable | Value |
|---|---|
| UniqueID | "72ce3aadfc205ab82369b26f12395fc3" |
| BaseFileName | "swap-tags-and-categories" |
| TranslationBaseName | "swap-tags-and-categories" |
| Lang | "en" |
| Section | "posts" |
| LogicalName | "swap-tags-and-categories.md" |
| Dir | "posts/" |
| Ext | "md" |
| Path | "posts/swap-tags-and-categories.md" |