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'
- 'auto'
# Plugins
plugins:
- search
- git-revision-date
# Extensions
markdown_extensions:
- admonition
- codehilite(guess_lang=false)
- toc(permalink=true)
- lightgallery
- codehilite:
guess_lang: false
- toc:
permalink: true
# - lightgallery
# Page naming
pages:

View file

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