Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added section -> category conversion.
- Loading branch information
1 parent
3881184
commit 685be9c
Showing
2 changed files
with
33 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
Nikola Metadata Upgrade (v7 to v8) | ||
================================== | ||
|
||
This is a plugin to upgrade old-style tags metadata (`draft`, `private`, `mathjax`) | ||
to new-style metadata, i.e. using the `status` and `has_math` metadata fields. The | ||
tags were used in Nikola v7 and earlier, and are no longer used by default in | ||
Nikola v8. If you are using them in your blog, **you will be warned** by | ||
`nikola build` — otherwise, don’t install this plugin (it won’t do a thing anyway | ||
and will only waste disk space and load time). | ||
This plugin fulfills two purposes: | ||
|
||
1. It upgrades old-style tags metadata (`draft`, `private`, `mathjax`) | ||
to new-style metadata, i.e. using the `status` and `has_math` metadata fields. | ||
The tags were used in Nikola v7 and earlier, and are no longer used by default | ||
in Nikola v8. If you are using them in your blog, **you will be warned** by | ||
`nikola build` — otherwise, don’t install this plugin (it won’t do a thing | ||
anyway and will only waste disk space and load time). | ||
|
||
2. It converts sections to categories. If both section and category are specified | ||
in a post, a warning is printed and the category kept. | ||
|
||
The plugin adds the `nikola upgrade_metadata_v8` command. Remove the plugin | ||
manually after the upgrade. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters