From 7f4458eb18831ee2456224eedcc324a81ff6af1d Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sat, 13 Nov 2021 13:15:58 +0100 Subject: [PATCH] Removed Disqus integration --- docs/customization.md | 6 ++- material/404.html | 1 - material/partials/integrations/disqus.html | 12 ----- material/partials/page-footer.html | 1 - src/404.html | 3 -- src/partials/integrations/disqus.html | 58 ---------------------- src/partials/page-footer.html | 3 -- 7 files changed, 4 insertions(+), 80 deletions(-) delete mode 100644 material/partials/integrations/disqus.html delete mode 100644 src/partials/integrations/disqus.html diff --git a/docs/customization.md b/docs/customization.md index 440b835d9..9bf82cc46 100644 --- a/docs/customization.md +++ b/docs/customization.md @@ -101,8 +101,7 @@ assets may also be put in the `overrides` directory: ├─ partials/ │ ├─ integrations/ # Third-party integrations │ │ ├─ analytics/ # Analytics integrations -│ │ ├─ analytics.html # Analytics setup -│ │ └─ disqus.html # Disqus +│ │ └─ analytics.html # Analytics setup │ ├─ languages/ # Translation languages │ ├─ footer.html # Footer bar │ ├─ header.html # Header bar @@ -110,6 +109,9 @@ assets may also be put in the `overrides` directory: │ ├─ logo.html # Logo in header and sidebar │ ├─ nav.html # Main navigation │ ├─ nav-item.html # Main navigation item +│ ├─ page.html # Page +│ ├─ page-footer.html # Page footer +│ ├─ page-header.html # Page header │ ├─ palette.html # Color palette │ ├─ search.html # Search box │ ├─ social.html # Social links diff --git a/material/404.html b/material/404.html index 592b67a07..ae765c44c 100644 --- a/material/404.html +++ b/material/404.html @@ -5,4 +5,3 @@ {% block content %}

404 - Not found

{% endblock %} -{% block disqus %}{% endblock %} diff --git a/material/partials/integrations/disqus.html b/material/partials/integrations/disqus.html deleted file mode 100644 index fcd7ac295..000000000 --- a/material/partials/integrations/disqus.html +++ /dev/null @@ -1,12 +0,0 @@ -{#- - This file was automatically generated - do not edit --#} -{% set disqus = config.extra.disqus %} -{% if page and page.meta and page.meta.disqus is string %} - {% set disqus = page.meta.disqus %} -{% endif %} -{% if not page.is_homepage and disqus %} -

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

-
- -{% endif %} diff --git a/material/partials/page-footer.html b/material/partials/page-footer.html index 31cd5dc5a..c1d58f8c1 100644 --- a/material/partials/page-footer.html +++ b/material/partials/page-footer.html @@ -7,4 +7,3 @@ ) %} {% include "partials/source-file.html" %} {% endif %} -{% include "partials/integrations/disqus.html" %} diff --git a/src/404.html b/src/404.html index 27941f8c0..436c85309 100644 --- a/src/404.html +++ b/src/404.html @@ -26,6 +26,3 @@ {% block content %}

404 - Not found

{% endblock %} - - -{% block disqus %}{% endblock %} diff --git a/src/partials/integrations/disqus.html b/src/partials/integrations/disqus.html deleted file mode 100644 index 726bb37f1..000000000 --- a/src/partials/integrations/disqus.html +++ /dev/null @@ -1,58 +0,0 @@ - - - -{% set disqus = config.extra.disqus %} -{% if page and page.meta and page.meta.disqus is string %} - {% set disqus = page.meta.disqus %} -{% endif %} - - -{% if not page.is_homepage and disqus %} -

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

-
- -{% endif %} diff --git a/src/partials/page-footer.html b/src/partials/page-footer.html index 2f6c8773c..76a0b51e9 100644 --- a/src/partials/page-footer.html +++ b/src/partials/page-footer.html @@ -27,6 +27,3 @@ ) %} {% include "partials/source-file.html" %} {% endif %} - - -{% include "partials/integrations/disqus.html" %}