mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-15 23:52:23 -06:00
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
38 lines
1.1 KiB
HTML
38 lines
1.1 KiB
HTML
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
|
|
|
{% include favicon.html %}
|
|
|
|
<link rel="stylesheet" href="{{ '/assets/css/just-the-docs-default.css' | relative_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 }}'{% unless site.ga_tracking_anonymize_ip == nil %}, { 'anonymize_ip': true }{% endunless %});
|
|
</script>
|
|
|
|
{% endif %}
|
|
|
|
{% if site.search_enabled != false %}
|
|
<script src="{{ '/assets/js/vendor/lunr.min.js' | relative_url }}"></script>
|
|
{% endif %}
|
|
|
|
{% if site.mermaid %}
|
|
<script src="https://cdn.jsdelivr.net/npm/mermaid@{{ site.mermaid.version }}/dist/mermaid.min.js"></script>
|
|
{% endif %}
|
|
|
|
<script src="{{ '/assets/js/just-the-docs.js' | relative_url }}"></script>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
{% seo %}
|
|
|
|
{% include head_custom.html %}
|
|
|
|
</head>
|