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.

Source Distribution

pelican_thumbnail-0.2.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

pelican_thumbnail-0.2-py2.7.egg (2.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page