1
0
mirror of https://github.com/thangisme/notes.git synced 2024-12-21 21:26:33 -05:00

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.
This commit is contained in:
Serge 2020-03-22 22:51:37 -04:00
parent 8bd2da55fe
commit aa8ca74883
No known key found for this signature in database
GPG Key ID: 0BF1E98129421355

View File

@ -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">