mirror of
https://github.com/thangisme/notes.git
synced 2024-12-30 11:56:24 -05:00
aa8ca74883
Currently just-the-docs renders two title and description tags when used with jekyll-seo-tag. This patch fixes plugin detection conditonal.
41 lines
1.2 KiB
HTML
41 lines
1.2 KiB
HTML
<head>
|
|
<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 %}
|
|
|
|
<link rel="shortcut icon" href="{{ 'favicon.ico' | absolute_url }}" type="image/x-icon">
|
|
|
|
<link rel="stylesheet" href="{{ '/assets/css/just-the-docs.css' | absolute_url }}">
|
|
|
|
{% if site.ga_tracking != nil %}
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.ga_tracking }}"></script>
|
|
<script>
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
|
|
gtag('config', "{{ site.ga_tracking }}");
|
|
</script>
|
|
|
|
{% endif %}
|
|
|
|
{% if site.search_enabled != false %}
|
|
<script type="text/javascript" src="{{ '/assets/js/vendor/lunr.min.js' | absolute_url }}"></script>
|
|
{% endif %}
|
|
<script type="text/javascript" src="{{ '/assets/js/just-the-docs.js' | absolute_url }}"></script>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
{% seo %}
|
|
|
|
{% include head_custom.html %}
|
|
|
|
</head>
|