Use extra.version if it is available when generating source partial

This commit is contained in:
Brendan Abbott 2016-10-23 18:11:44 +10:00
parent 46b7e0f5fe
commit d5a78ce396
2 changed files with 6 additions and 2 deletions

View File

@ -12,7 +12,9 @@
<div class="md-source__repository">
{{ repo_name }}
<ul class="md-source__facts">
<li class="md-source__fact">v0.2.4</li>
{% if config.extra.version %}
<li class="md-source__fact">v{{ config.extra.version }}</li>
{% endif %}
</ul>
</div>
</a>

View File

@ -41,7 +41,9 @@
<div class="md-source__repository">
{{ repo_name }}
<ul class="md-source__facts">
<li class="md-source__fact">v0.2.4</li> <!-- TODO: make dynamic -->
{% if config.extra.version %}
<li class="md-source__fact">v{{ config.extra.version }}</li>
{% endif %}
</ul>
</div>
</a>