Easily embed GitHub Git file in your Pelican articles.
Project description
Pelican Git Tag is a library that makes it easy to embed GitHub file in your Pelican blogs.
Installation
To install pelican-git, simply:
$ pip install pelican-git
Then add a bit of code to your blog configuration:
PLUGINS = [
# ...
'pelican_git',
# ...
]
Usage
In your articles, just add lines to your posts that look like:
[git:repo=yourname/yourrepo,file=somefile,branch=master,hash=xxxxxxx]
branch and hash are optional. If you don’t specify branch, it will be master. If you specify hash it will overwrite the branch setting.
Settings
GIT_CACHE_ENABLED - Specifies whether to cache the gist on disk or not. Default is True. (Optional)
Testing
$ make install
$ make test
Changelog
0.1.0 - Initial version
License
Uses the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pelican-git-0.1.1.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for pelican_git-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c47aa4ee135edfd46f34ffce700d95d634ae989376678c88aa43fef6ebb170f |
|
MD5 | cdfc66aba7abe9f39840f38cfb3f8920 |
|
BLAKE2b-256 | e4b45b600504259dfe7a44f6c3c75a7802d7c9462537d8553edbf3bc6078afc0 |