Skip to main content

A Pelican plugin to add a thumbnail for the article.

Project description

Pelican Thumbnail Plugin is a plugin for pelican to select thumbnail from your post.

Now, its developing state…

Installation

This plugin is not registered on PyPI. You should clone this repository and install through pip:

git clone git@github.com:wutali/pelican_thumbnail.git
cd pelican_thumbnail
pip install -e .

Usage

If you insert thumbnail for YouTube, add youtube meta tag like this:

It is awesome!
==============

:date: 2014-01-01 00:00
:slug: awesome-youtube
:author: Me
:youtube: teAqRZX4hbY

You can do same thing to Niconico Movie (its japanese movie service.):

It is great!
==============

:date: 2014-01-01 00:00
:slug: great-niconico
:author: Me
:niconico: sm19220627

But Niconico movies original thumbnail is a little small…

Use the thumbnail attribute of article object when you use thumbnail on your theme:

<img src="{{ article.thumbnail }}" />

License

Pelican Thumbnail is released under the MIT License. http://www.opensource.org/licenses/mit-license

Project details


Download files

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

Files for pelican_thumbnail, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size pelican_thumbnail-0.2.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View
Filename, size pelican_thumbnail-0.2-py2.7.egg (2.8 kB) File type Egg Python version 2.7 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page