Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

Project Description

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
Release History

Release History

This version
History Node

v0.0.2

History Node

v0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pelican-category_template-v0.0.2.tar.gz (3.4 kB) Copy SHA256 Checksum SHA256 Source Jan 3, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting