Easily embed GitHub Git file in your Pelican articles.
Project description
Pelican Git is a library that makes it easy to embed GitHub file in your Pelican blogs using simple syntax.
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 git files 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.3.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for pelican_git-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5d7dedc49cc87cabfa5469300acc344a7c223a731481de186484f874c902f93 |
|
MD5 | 28744eee521afab6ff349248ab47f18c |
|
BLAKE2b-256 | 17dbbe7fd0a0fc19e9cca295f7905468cd19c1eccca51bd8955fc8cac2a63de0 |