From 713bf41403ed56eb1e6290ee52afd2d7a809fa13 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Thu, 3 Nov 2022 15:22:18 +0100 Subject: [PATCH] Removed unnecessary templates in overrides --- material/overrides/blog.html | 10 ---- material/overrides/main.html | 3 - material/overrides/partials/content.html | 18 ------ mkdocs.yml | 1 + src/overrides/blog.html | 76 ------------------------ src/overrides/main.html | 5 -- src/overrides/partials/content.html | 51 ---------------- 7 files changed, 1 insertion(+), 163 deletions(-) delete mode 100644 material/overrides/blog.html delete mode 100644 material/overrides/partials/content.html delete mode 100644 src/overrides/blog.html delete mode 100644 src/overrides/partials/content.html diff --git a/material/overrides/blog.html b/material/overrides/blog.html deleted file mode 100644 index 609da2588..000000000 --- a/material/overrides/blog.html +++ /dev/null @@ -1,10 +0,0 @@ -{#- - This file was automatically generated - do not edit --#} -{% extends "overrides/main.html" %} -{% block content %} - {{ super() }} -

{{ lang.t("meta.comments") }}

- - -{% endblock %} diff --git a/material/overrides/main.html b/material/overrides/main.html index d61ab0c83..f414b841f 100644 --- a/material/overrides/main.html +++ b/material/overrides/main.html @@ -14,9 +14,6 @@ Twitter {% endblock %} -{% block content %} - {% include "overrides/partials/content.html" %} -{% endblock %} {% block scripts %} {{ super() }} diff --git a/material/overrides/partials/content.html b/material/overrides/partials/content.html deleted file mode 100644 index 10acfc0cc..000000000 --- a/material/overrides/partials/content.html +++ /dev/null @@ -1,18 +0,0 @@ -{#- - This file was automatically generated - do not edit --#} -{% if "tags" in config.plugins %} - {% include "partials/tags.html" %} -{% endif %} -{% include "overrides/partials/actions.html" %} -{% if not "\x3ch1" in page.content %} -

{{ page.title | d(config.site_name, true)}}

-{% endif %} -{{ page.content }} -{% if page.meta and ( - page.meta.git_revision_date_localized or - page.meta.revision_date -) %} - {% include "partials/source-file.html" %} -{% endif %} -{% include "partials/feedback.html" %} diff --git a/mkdocs.yml b/mkdocs.yml index 603dcec3e..341d58b67 100755 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -36,6 +36,7 @@ copyright: Copyright © 2016 - 2022 Martin Donath # Configuration theme: name: material + custom_dir: material/overrides features: # - announce.dismiss - content.code.annotate diff --git a/src/overrides/blog.html b/src/overrides/blog.html deleted file mode 100644 index ddbd3ed80..000000000 --- a/src/overrides/blog.html +++ /dev/null @@ -1,76 +0,0 @@ - - -{% extends "overrides/main.html" %} - - -{% block content %} - {{ super() }} - - -

{{ lang.t("meta.comments") }}

- - - - -{% endblock %} diff --git a/src/overrides/main.html b/src/overrides/main.html index 5aeb7e294..88a14e8f7 100644 --- a/src/overrides/main.html +++ b/src/overrides/main.html @@ -43,11 +43,6 @@ {% endblock %} - -{% block content %} - {% include "overrides/partials/content.html" %} -{% endblock %} - {% block scripts %} {{ super() }} diff --git a/src/overrides/partials/content.html b/src/overrides/partials/content.html deleted file mode 100644 index b954431ad..000000000 --- a/src/overrides/partials/content.html +++ /dev/null @@ -1,51 +0,0 @@ - - - -{% if "tags" in config.plugins %} - {% include "partials/tags.html" %} -{% endif %} - - -{% include "overrides/partials/actions.html" %} - - -{% if not "\x3ch1" in page.content %} -

{{ page.title | d(config.site_name, true)}}

-{% endif %} - - -{{ page.content }} - - -{% if page.meta and ( - page.meta.git_revision_date_localized or - page.meta.revision_date -) %} - {% include "partials/source-file.html" %} -{% endif %} - - -{% include "partials/feedback.html" %}