update conf for mkdocs 1.0 and add revision date to pages

This commit is contained in:
Gauthier Provost 2019-02-28 17:24:36 +08:00
parent ce7ca6fecb
commit 4f3840dabf
2 changed files with 18 additions and 3 deletions

View file

@ -48,12 +48,20 @@ google_analytics:
- 'UA-96982596-2' - 'UA-96982596-2'
- 'auto' - 'auto'
# Plugins
plugins:
- search
- git-revision-date
# Extensions # Extensions
markdown_extensions: markdown_extensions:
- admonition - admonition
- codehilite(guess_lang=false) - codehilite:
- toc(permalink=true) guess_lang: false
- lightgallery - toc:
permalink: true
# - lightgallery
# Page naming # Page naming
pages: pages:

View file

@ -19,3 +19,10 @@
} }
</script> </script>
{% endblock scripts %} {% endblock scripts %}
{% block content %}
{{ super() }}
{% if page.meta.revision_date %}
<small><i>Updated on {{ page.meta.revision_date }}</i></small>
{% endif %}
{% endblock %}