From d1e9512b790012537cb4fb033184b2b10e4628a1 Mon Sep 17 00:00:00 2001 From: makayabou Date: Sun, 6 Sep 2020 23:02:49 +0200 Subject: [PATCH] author name without href, add update date --- .gitignore | 1 + mkdocs.yml | 1 + overrides/main.html | 7 ++++--- requirements.txt | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 615fccdb..65b01038 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ geany/ +mkdocs-material/ diff --git a/mkdocs.yml b/mkdocs.yml index 9c21942f..5a2433fe 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -11,6 +11,7 @@ plugins: - search: min_search_length: 2 - git-authors + - git-revision-date markdown_extensions: - admonition - pymdownx.details diff --git a/overrides/main.html b/overrides/main.html index 8d629284..d2520898 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -2,9 +2,10 @@ {% block disqus %}
- - Authors: {{ git_page_authors }} - + Authors: + {%- for author in git_info.get('page_authors') -%} + {{ author.name }} , + {%- endfor -%}
{% include "partials/integrations/disqus.html" %} {% endblock %} diff --git a/requirements.txt b/requirements.txt index 4401bc28..93b5761f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,3 +7,4 @@ mkdocs-material>=5.4.0 Pygments git+https://github.com/pugong/mkdocs-mermaid-plugin mkdocs-git-authors-plugin +mkdocs-git-revision-date-plugin