Valentin Lorentz 9f47d6bb84 category_meta: Add support for Pelican >= 3.7.0 | %!s(int64=7) %!d(string=hai) anos | |
---|---|---|
.. | ||
README.md | %!s(int64=9) %!d(string=hai) anos | |
__init__.py | %!s(int64=9) %!d(string=hai) anos | |
category_meta.py | %!s(int64=7) %!d(string=hai) anos |
A plugin to read metadata for each category from an index file in that category's directory.
For this plugin to work properly, your articles should not have a Category: tag in their metadata; instead, they should be stored in (subdirectories of) per-category directories. Each per-category directory must have a file named 'index.ext' at its top level, where .ext is any extension that will be picked up by an article reader. The metadata of that article becomes the metadata for the category, copied over verbatim, with three special cases:
You can use this, for example, to control the slug used for each category independently of its name, or to add a description at the top of each category page.