Skip to content
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.

Latest commit

 

History

History
31 lines (20 loc) · 932 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 932 Bytes

pelican-material

Material is a pelican theme based on Materialize, a material design framework.

Dependencies

Dependencies are managed through bower. Once you have bower, you are only one command away to use the theme.

Run this command from the static directory:

bower install

Configuration

This template uses a cutom filter to sort tags by article count. You need to add this to your config:

from functools import partial
JINJA_FILTERS = {
    'sort_by_article_count': partial(
        sorted,
        key=lambda tags: len(tags[1]),
        reverse=True)} # reversed for descending order

You will probably want to use pelican-materialbox, a pelican plugin to use materialboxed from Materialize.

License

MIT