greatwallet / pelican.plugins.category_order

A Pelican plugin that order categories by number of posts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Control Category Display Order

By default, you can only set the order categories (and tags) alphabetically. This plugin offers to sort them by the number of articles in that category (or tag). See a live demo here.

Settings

  • CATEGORIES_ORDER: type: tuple or list of `str`s; should contain all categories, demonstrating the order of categories.
  • CATEGORIES_ORDER_BY: can be size, size-rev, alphabetic-rev or alphabetic.
  • TAGS_ORDER_BY: can be size, size-rev, alphabetic-rev or alphabetic.

The default value of these two settings is size-rev.

About

A Pelican plugin that order categories by number of posts.


Languages

Language:Python 100.0%