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'
|
- '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:
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue