mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-10 14:01:22 -06:00
Avoid the need to add a link to favicon,ico when editing `_includes/head_custom.html`, and avoid creating an invalid favicon link - Remove the content of `_includes/head_custom.html` - Add code to `_includes/head.html` to create a link to an existing favicon,ico - Add an explanation of favicon_ico to docs/configuration.md - Remove the example of `includes/head_custom.html` and add an explanation of what the `<head>` element automatically includes
47 lines
1.5 KiB
HTML
47 lines
1.5 KiB
HTML
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
|
|
|
<link rel="stylesheet" href="{{ '/assets/css/just-the-docs-default.css' | relative_url }}">
|
|
|
|
{% if site.ga_tracking != nil %}
|
|
{% assign ga_tracking_ids = site.ga_tracking | split: "," %}
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id={{ ga_tracking_ids.first }}"></script>
|
|
<script>
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
|
|
{% for ga_property in ga_tracking_ids %}
|
|
gtag('config', '{{ ga_property }}'{% unless site.ga_tracking_anonymize_ip == nil %}, { 'anonymize_ip': true }{% endunless %});
|
|
{% endfor %}
|
|
</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">
|
|
|
|
{% for file in site.static_files %}
|
|
{% if file.path == site.favicon_ico or file.path == '/favicon.ico' %}
|
|
{% assign favicon = true %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% if favicon %}
|
|
<link rel="icon" href="{{ site.favicon_ico | default: '/favicon.ico' | relative_url }}" type="image/x-icon">
|
|
{% endif %}
|
|
|
|
{% seo %}
|
|
|
|
{% include head_custom.html %}
|
|
|
|
</head>
|