Thu 08 September 2016
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
pluginssection 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"
gitlab pageswill include it in its python environment when it builds the site.
$ echo "pelican-gist" >> requirements.txt"
should embed the gist https://gist.github.com/jerryasher/18ff0822f8d511d30516