Skip to main content

Embed a list of your public GitHub projects in your pages

Project description

Embed a list of your public GitHub projects in your pages.

Installation

To install pelican-github-projects, simply install it from PyPI:

$ pip install pelican-github-projects

Configuration

Enable the plugin in your pelicanconf.py

PLUGINS = [
    # ...
    'pelican-github-projects',
    # ...
]

Add a setting with your GitHub username.

GITHUB_USER = 'kyah'

Available data

name:

The name of your project.

language:

The language your project is written in, information on how GitHub detects languages is available here. It is GitHub that detects the language, not this plugin. So please, no issues about that.

description:

The description of your project (as set on GitHub.)

homepage:

The homepage of your project (as set on GitHub.)

github_url:

The web page URL of your project on GitHub (not the GIT or API URL.)

Usage

In your templates you will be able to iterate over the github_projects variable, as below.

{% if GITHUB_USER %}
    {% for project in github_projects %}
      <h2>{{ project.name }} {% if project.language %}<sup>({{ project.language }})</sup>{% endif %}</h2>
      <p>{{ project.description }}</p>
      <p>
        {% if project.homepage %}
            <a href="{{ project.homepage }}">Homepage</a>
        {% endif %}
        <a href="{{ project.github_url }}">GitHub</a>
      </p>
    {% endfor %}
{% endif %}

License

GPLv2 license.

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-projects-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pelican_github_projects-0.1.0-py2.py3-none-any.whl (5.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pelican-github-projects-0.1.0.tar.gz.

File metadata

File hashes

Hashes for pelican-github-projects-0.1.0.tar.gz
Algorithm Hash digest
SHA256 671fddb9a6659c9d3e60b10a165c363ba817ffa0a066db8f254bdd58cb655d4e
MD5 f8c19247865f7fa7c3a948a50957ae55
BLAKE2b-256 5f23ffdd3e4416c7d772b6967ec64061dacace1da8979bdcdd57b5199c4bab59

See more details on using hashes here.

File details

Details for the file pelican_github_projects-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pelican_github_projects-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5341dee40f0da232f3681d4303f238b2762fb888e20d71c012a94a4fb4197b58
MD5 167a94dccb91daf03d6c398dc08114e4
BLAKE2b-256 5d178167266dbf875f3aef92189ba40705f77afea42393215009f50d2c5f5674

See more details on using hashes here.

Supported by

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