How to install pelican-gist
- Download and install ActivePython
- Open Command Prompt
- Type
pypm install pelican-gist
Lastest release
Pelican Gist Tag is a library to make it easy to GitHub Gists in your Pelican blogs.
Installation
To install pelican-gist, simply:
Then add a bit of code to your blog configuration:
Usage
In your articles, just add lines to your posts that look like:
This will tell the plugin to insert gist id 3254906 and choose the file brew-update-notifier.sh into your post. The resulting HTML will look like:
If your gist has only a single file, you can also specify the gist like so:
Notice it is using the id only. The resulting HTML will look like:
There is also support for private gists where they have the gist id that looks like e34db4c532a6cfa1f711.
Settings
GIST_CACHE_ENABLED - Specifies whether to cache the gist on disk or not. Default is True. (Optional)
License
Uses the MIT license.