From c498a5690a591a26a60eefefd964b757ee40b0ec Mon Sep 17 00:00:00 2001
From: Tom Brouwer <tombrouwer@outlook.com>
Date: Tue, 15 Nov 2022 09:09:59 +0100
Subject: [PATCH] Fix duplicate `title` if `jekyll-seo-tag` not in users's
 plugins (#1040)

In case 'just-the-docs' is used as a theme, and a user does not
eplicitly include 'jekyll-seo-tag' inside the plugins list in
_config.yml, two 'title' elements were rendered. Since
jekyll-seo-tag is always available, because it's set in the plugins
list of the theme itself, the 'seo' tag will aways work, making
the seperate title and description elements obsolete.

Fixes #1008
---
 _includes/head.html | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/_includes/head.html b/_includes/head.html
index e70e1113..5129457c 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -2,14 +2,6 @@
   <meta charset="UTF-8">
   <meta http-equiv="X-UA-Compatible" content="IE=Edge">
 
-  {% unless site.plugins contains "jekyll-seo-tag" %}
-    <title>{{ page.title }} - {{ site.title }}</title>
-
-    {% if page.description %}
-      <meta name="Description" content="{{ page.description }}">
-    {% endif %}
-  {% endunless %}
-
   {% include favicon.html %}
 
   <link rel="stylesheet" href="{{ '/assets/css/just-the-docs-default.css' | relative_url }}">
-- 
GitLab