mirror of
https://github.com/thangisme/notes.git
synced 2025-01-18 00:16:25 -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:
parent
8bd2da55fe
commit
aa8ca74883
@ -2,13 +2,13 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
<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>
|
<title>{{ page.title }} - {{ site.title }}</title>
|
||||||
|
|
||||||
{% if page.description %}
|
{% if page.description %}
|
||||||
<meta name="Description" content="{{ page.description }}">
|
<meta name="Description" content="{{ page.description }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endunless %}
|
||||||
|
|
||||||
<link rel="shortcut icon" href="{{ 'favicon.ico' | absolute_url }}" type="image/x-icon">
|
<link rel="shortcut icon" href="{{ 'favicon.ico' | absolute_url }}" type="image/x-icon">
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user