diff --git a/_includes/favicon.html b/_includes/favicon.html deleted file mode 100644 index c485d4c22e85fadd3da3d25092c1312aa502e615..0000000000000000000000000000000000000000 --- a/_includes/favicon.html +++ /dev/null @@ -1 +0,0 @@ -<link rel="shortcut icon" href="{{ 'favicon.ico' | relative_url }}" type="image/x-icon"> diff --git a/_includes/head.html b/_includes/head.html index 5129457cea98a3df0fd7381b10dd70a8e5618e7d..0added66a93bdb55d86f6db27b53719a7e56e5d3 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -2,8 +2,6 @@ <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 %} diff --git a/_includes/head_custom.html b/_includes/head_custom.html index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..c485d4c22e85fadd3da3d25092c1312aa502e615 100644 --- a/_includes/head_custom.html +++ b/_includes/head_custom.html @@ -0,0 +1 @@ +<link rel="shortcut icon" href="{{ 'favicon.ico' | relative_url }}" type="image/x-icon"> diff --git a/docs/customization.md b/docs/customization.md index f03d9e3175abe4672654f92c702267ebc8ed829f..4a5f872e335451b931287de9c69f64220c203fd3 100644 --- a/docs/customization.md +++ b/docs/customization.md @@ -168,20 +168,28 @@ The (optional) `text-delta` class makes the heading appear as **Contents**{:.tex This content appears at the bottom of every page's main content. More info for this include can be found in the [Configuration - Footer content]({{ site.baseurl }}{% link docs/configuration.md %}#footer-content). -### Custom Head +### Custom Head and Favicon `_includes/head_custom.html` Any HTML added to this file will be inserted before the closing `<head>` tag. This might include additional `<meta>`, `<link>`, or `<script>` tags. -#### Example +Note that by default, this file has the following contents: + +```html +<link rel="shortcut icon" href="{{ 'favicon.ico' | relative_url }}" type="image/x-icon"> +``` + +#### Example: Custom Favicon {: .no_toc } To add a custom favicon, create `_includes/head_custom.html` and add: ```html -<link rel="shortcut icon" type="image/png" href="{{site.baseurl}}/path/to/your/favicon.png"> +<link rel="shortcut icon" href="{{ 'favicon.ico' | relative_url }}" type="image/x-icon"> ``` +If *no favicon* is desired, one needs to have a *blank* `_includes/head_custom.html`. + ### Custom Header `_includes/header_custom.html`