docs/blog/overrides/partials/source-file.html

17 lines
592 B
HTML

{% if page.meta.git_creation_date_localized and page.meta.git_revision_date_localized %}
<!-- Source file information -->
<!-- based on https://timvink.github.io/mkdocs-git-revision-date-localized-plugin/howto/override-a-theme -->
<p class="md-source-file">
<strong>
Published on:
{{ page.meta.git_creation_date_localized }}
{% if page.meta.git_creation_date_localized != page.meta.git_revision_date_localized%}
,&nbsp;
Revised on:
{{ page.meta.git_revision_date_localized }}
{% endif %}
</strong>
</p>
{% endif %}