Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 808 Bytes

README.md

File metadata and controls

29 lines (15 loc) · 808 Bytes

Description

Pin Pelican's article(s) to top "Sticky article".

It is useful when you want to publish new articles while keeping one or more articles at the top of your articles list.

Usage

Check out the plugin to your pelican's plugins directory

Edit your pelicanconf.py:

PLUGINS = ['pin_to_top']

In your article(s) meta data you can use:

Pin: true 

**Note: ** at the moment you just need to have the "Pin" attribute and "true" doesn't really change anything.

Later you can also use it in your theme, for example you can use the glyphicon-pushpin:

<span>{% if article.pin %}<i class="glyphicon glyphicon-pushpin"></i>{% endif %}</span>

Visual example:

Pin to top