Pelican Gist

Thu 08 September 2016
Category: meta

Added the Pelican Gist plugin. Pelican Gist Tag is a library to make it easy to GitHub Gists in your Pelican blogs.

  • Installed the python module pelican-gist into my pelican virtual environment
pip install pelican-gist
  • Enabled neighbors in the pelicanconf.py plugins section and explicitly set the GIST_CACHE_LOCATION. The latter is because the plugin itself creates a temporary cache in /tmp and it turns out that Android doesn’t seem to have a simple, straight forward, /tmp directory.
PLUGINS = [
    # ...
    'pelican_gist',
    # ...
]

GIST_CACHE_LOCATION = "TMPDIR"
  • Appended pelican-gist to requirements.txt so gitlab pages will include it in its python environment when it builds the site.
$ echo "pelican-gist" >> requirements.txt"

Example

[gist:id=18ff0822f8d511d30516]

should embed the gist https://gist.github.com/jerryasher/18ff0822f8d511d30516

Category: meta Tagged: pelican pelican-plugins change-log

Comments