mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-10 14:01:22 -06:00
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
This commit is contained in:
parent
b09fd44d70
commit
c498a5690a
@ -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 }}">
|
||||
|
Loading…
x
Reference in New Issue
Block a user