Skip to content

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

Notifications You must be signed in to change notification settings

WestHealth/pin_to_top

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

In your article(s) you can pin the article to the top of a category by:

pin_to_category: true

In you article(s) you can pin the article to the top of an author by:

pin_to_author: true

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%