blob: 3233051a9ec76e8a3f2d7ea77eade5bf27cbc404 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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+](LICENSE)
|