Jesús 6989ea3af5 update translations 4 anos atrás
..
LICENSE 12445bca67 Add get_app_version plugin 4 anos atrás
README.md 6989ea3af5 update translations 4 anos atrás
__init__.py 12445bca67 Add get_app_version plugin 4 anos atrás
get_app_version.py 12445bca67 Add get_app_version plugin 4 anos atrás

README.md

App version

A Pelican plugin to show app version from git.

Copyright (c) 2020 - Jesús E.

How to use

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 %}

License

This work is under the License GNU GPLv3+