From 0e12861905fdb41f9b4bff4c28a7fe28790272a8 Mon Sep 17 00:00:00 2001 From: TRaSH Date: Mon, 9 Nov 2020 20:40:46 +0100 Subject: [PATCH] enables displaying the date of the last git modification of a page enables displaying the date of the last git modification of a page --- mkdocs.yml | 5 +++++ requirements.txt | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/mkdocs.yml b/mkdocs.yml index a4783d771..48a5fa785 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -32,6 +32,11 @@ markdown_extensions: plugins: - search + - git-revision-date-localized: + type: timeago + time_zone: Europe/Amsterdam + locale: en + fallback_to_build_date: false - awesome-pages - macros: j2_block_start_string: "[[%" diff --git a/requirements.txt b/requirements.txt index b9be102cd..24ed045e8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,5 @@ mkdocs-material>=6.1.0 pymdown-extensions>=3.3.2 mkdocs-macros-plugin>=0.4.18 mkdocs-awesome-pages-plugin>=2.4.0 -mkdocs-redirects>=1.0.1 \ No newline at end of file +mkdocs-redirects>=1.0.1 +mkdocs-git-revision-date-plugin>=0.7.3 \ No newline at end of file