Skip to content

A pelican plugin to apply a template based on the category of a document.

License

Notifications You must be signed in to change notification settings

hrbonz/pelican-category_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pelican - category template

https://travis-ci.org/hrbonz/pelican-category_template.png?branch=master license BSD 3-Clause

Load a template for any content (article, page) based on its category. For example, for an article, if a template named article-<category>.html exists in the theme or Jinja2 path, it will be used. If not, then the default template is used.

Install

Use pip to install the plugin:

$ pip install pelican-category_template

Usage

To use the plugin, add it to the PLUGINS list in your configuration file. Put it in pelicanconf.py by default:

PLUGINS = [
    # ...
    'categorytpl'',
]

Test

$ python -m unittest discover

License

pelican-category_template is published under a BSD 3-clause license, see the LICENSE file distributed with the project.

About

A pelican plugin to apply a template based on the category of a document.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages