From c498a5690a591a26a60eefefd964b757ee40b0ec Mon Sep 17 00:00:00 2001 From: Tom Brouwer 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 e70e111..5129457 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -2,14 +2,6 @@ - {% unless site.plugins contains "jekyll-seo-tag" %} - {{ page.title }} - {{ site.title }} - - {% if page.description %} - - {% endif %} - {% endunless %} - {% include favicon.html %}