Skip to main content

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.

feedparser

Acknowledgements

This package is based on the github_activity package by Mario Lang and updated to work with the nice-blog theme.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pelican_github_activity-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

pelican_github_activity-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file pelican_github_activity-0.1.0.tar.gz.

File metadata

  • Download URL: pelican_github_activity-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for pelican_github_activity-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3e08e4f3ae4dd8c3db2ac9d570d67a18e1f5ecc3877a410ee63c25a4cb63493b
MD5 1d3af68010ae1f368bc88e03f902b452
BLAKE2b-256 03f374a56ff164bf285edee9412605c0e416d78cce88e6b0841fbc13e223864b

See more details on using hashes here.

File details

Details for the file pelican_github_activity-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pelican_github_activity-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for pelican_github_activity-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc100bae3fe9027be28ad2d5f8703b5abb281738b4c686c237a71e9ccfdd654f
MD5 6a5591e1809712ddff8384e5405f7e50
BLAKE2b-256 4033926e2036ef6196f4a958a0d1abf6b7a06995563e65ea353dd76d2a6ad77f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page