Pelican github activity modified to work with nice-blog theme
Project description
pelican-github-activity
Github activity plugin made to work with nice-blog theme
GitHub activity
This plugin makes use of the feedparser
_ library that you'll need to
install.
Set the GITHUB_ACTIVITY_FEED
parameter to your GitHub activity feed.
For example, to track Pelican project activity, the setting would be::
GITHUB_ACTIVITY_FEED = 'https://github.com/getpelican.atom'
If you want to limit the amount of entries to a certain maximum set the
GITHUB_ACTIVITY_MAX_ENTRIES
parameter.
GITHUB_ACTIVITY_MAX_ENTRIES = 10
On the template side, you just have to iterate over the github_activity
variable, as in this example::
{% if GITHUB_ACTIVITY_FEED %}
<div class="social">
<h2>Github Activity</h2>
<ul>
{% for entry in github_activity %}
<li><b>{{ entry[0] }}</b><br /> {{ entry[1] }}</li>
{% endfor %}
</ul>
</div><!-- /.github_activity -->
{% endif %}
github_activity
is a list of lists. The first element is the title,
and the second element is the raw HTML from GitHub.
Acknowledgements
This package is based on the github_activity package by Mario Lang and updated to work with the nice-blog theme.
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
Built Distribution
Hashes for pelican_github_activity-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e08e4f3ae4dd8c3db2ac9d570d67a18e1f5ecc3877a410ee63c25a4cb63493b |
|
MD5 | 1d3af68010ae1f368bc88e03f902b452 |
|
BLAKE2b-256 | 03f374a56ff164bf285edee9412605c0e416d78cce88e6b0841fbc13e223864b |
Hashes for pelican_github_activity-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc100bae3fe9027be28ad2d5f8703b5abb281738b4c686c237a71e9ccfdd654f |
|
MD5 | 6a5591e1809712ddff8384e5405f7e50 |
|
BLAKE2b-256 | 4033926e2036ef6196f4a958a0d1abf6b7a06995563e65ea353dd76d2a6ad77f |