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:
Tim Vink
2019-12-11 10:46:03 +01:00
committed by Martin Donath
parent 633bcace14
commit f08f2fbf65
76 changed files with 175 additions and 35 deletions

View File

@@ -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 -->