From aa8ca74883243708f3203e7f659aafbbcbdc720e Mon Sep 17 00:00:00 2001 From: Serge <shayief@gmail.com> Date: Sun, 22 Mar 2020 22:51:37 -0400 Subject: [PATCH] Fix duplicated title and description tags Currently just-the-docs renders two title and description tags when used with jekyll-seo-tag. This patch fixes plugin detection conditonal. --- _includes/head.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index eae6a5e9..aebfaba8 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -2,13 +2,13 @@ <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> - {% if site.plugins.jekyll-seo == nil %} + {% unless site.plugins contains "jekyll-seo-tag" %} <title>{{ page.title }} - {{ site.title }}</title> {% if page.description %} <meta name="Description" content="{{ page.description }}"> {% endif %} - {% endif %} + {% endunless %} <link rel="shortcut icon" href="{{ 'favicon.ico' | absolute_url }}" type="image/x-icon"> -- GitLab