update conf for mkdocs 1.0 and add revision date to pages
This commit is contained in:
parent
ce7ca6fecb
commit
4f3840dabf
2 changed files with 18 additions and 3 deletions
14
mkdocs.yml
14
mkdocs.yml
|
@ -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:
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue