Commit 37e10809 authored by Adrian DC's avatar Adrian DC
Browse files

docs(templates): use Git commit SHA1 as version if no Git tag found

Signed-off-by: default avatarAdrian DC <radian.dc@gmail.com>
parent 06d795e0
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for docs/templates/covers/front.html.j2: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@
    <div class="author"><b>Author: </b> <span>{{ config.site_author }}</span></div>
    <div class="description"><b>Description: </b> <span>{{ config.site_description }}</span></div>
    <div class="date"><b>Date: </b> <span>{{ git.date.strftime('%d/%m/%Y') }}</span></div>
    <div class="version"><b>Version: </b> <span>{{ git.tag }}</span></div>
    <div class="version"><b>Version: </b> <span>{{ git.tag if git.tag else git.short_commit }}</span></div>
    <div class="title"><span>{{ page.title }}</span></div>
  </section>
</div>