mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-22 13:53:43 -04:00
Added support for mkdocs-git-revision-date-localized-plugin (#1373)
* #1350 update base template to include git revision date * #1350 add localized revision date * #1350 support for v0.3 of mkdocs-git-revision-date-localized-plugin * #1350 add translations for source.revision.date
This commit is contained in:
@@ -328,6 +328,19 @@
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
<!-- Support for mkdocs-git-revision-date-localized-plugin -->
|
||||
{% if page.meta.git_revision_date_localized %}
|
||||
<small>
|
||||
{{ lang.t('source.revision.date') }}: {{ page.meta.git_revision_date_localized }}
|
||||
</small>
|
||||
<!-- Support for mkdocs-git-revision-date-plugin -->
|
||||
{% elif page.meta.revision_date %}
|
||||
<small>
|
||||
{{ lang.t('source.revision.date') }}: {{ page.meta.revision_date }}
|
||||
</small>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
<!-- Disqus integration -->
|
||||
|
||||
Reference in New Issue
Block a user