Add mkdocs-redirects plugin

Now the redirects are specified in mkdocs.yml
This commit is contained in:
XhmikosR
2020-03-01 21:52:24 +02:00
parent cb9aceb606
commit 774fc2d2e0
5 changed files with 6 additions and 15 deletions
-3
View File
@@ -1,3 +0,0 @@
---
redirect: /database/
---
-6
View File
@@ -1,6 +0,0 @@
---
title: Redirect for /ftldns/regex/
description: This url changed from page to subsection, must redirect from other sites to new page.
last_updated: Mon Jan 14 11:47:02 2019 UTC
redirect: /ftldns/regex/overview/
---
-6
View File
@@ -1,6 +0,0 @@
---
title: Presenting Pi-hole
description: Support for presenters
last_updated: Sun Feb 9 2020
redirect: /
---
+5
View File
@@ -135,3 +135,8 @@ extra_css:
plugins:
- search
- git-revision-date-localized
- redirects:
redirect_maps:
'ftldns/database.md': database/index.md
'ftldns/regex/index.md': ftldns/regex/overview.md
'main/presentations.md': index.md
+1
View File
@@ -2,3 +2,4 @@ markdown-include==0.5.1
mkdocs==1.1.2
mkdocs-git-revision-date-localized-plugin==0.5.2
mkdocs-material==5.2.2
mkdocs-redirects==1.0.1