mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-28 01:10:58 +01:00
Merge pull request #58 from brendo/dynamic-source-version
Use `extra.version` if it is available when generating source partial
This commit is contained in:
commit
e61f12d429
@ -12,7 +12,9 @@
|
|||||||
<div class="md-source__repository">
|
<div class="md-source__repository">
|
||||||
{{ repo_name }}
|
{{ repo_name }}
|
||||||
<ul class="md-source__facts">
|
<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>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
@ -41,7 +41,9 @@
|
|||||||
<div class="md-source__repository">
|
<div class="md-source__repository">
|
||||||
{{ repo_name }}
|
{{ repo_name }}
|
||||||
<ul class="md-source__facts">
|
<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>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user