Jesús 6989ea3af5 update translations | 4 lat temu | |
---|---|---|
.. | ||
LICENSE | 4 lat temu | |
README.md | 4 lat temu | |
__init__.py | 4 lat temu | |
get_app_version.py | 4 lat temu |
A Pelican plugin to show app version from git.
Copyright (c) 2020 - Jesús E.
In your pelicanconf.py, add:
PLUGINS = ['get_app_version']
In your template, add:
{% if CURRENT_VERSION and CURRENT_BRANCH %}
<h6>{{ _('Current version:') }} {{ CURRENT_VERSION }} @ {{ CURRENT_BRANCH }}</h6>
{% endif %}
This work is under the License GNU GPLv3+