From 91449f1aee41e55b1396ea98d2450437a2d3b03a Mon Sep 17 00:00:00 2001 From: Matt Wang <matt@matthewwang.me> Date: Tue, 27 Dec 2022 09:41:41 -0800 Subject: [PATCH] docs: fix two bugs in "Customization" (custom favicon, new annotation) (#1090) Fix two bugs in customization docs - custom favicon docs were not wrapped in `{% raw %}` tags - the "new" annotation for color schemes had an extra whitespace, and so the CSS class was not applied --- docs/customization.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/customization.md b/docs/customization.md index 4a5f872e..ca3cfecb 100644 --- a/docs/customization.md +++ b/docs/customization.md @@ -16,7 +16,6 @@ nav_order: 6 --- ## Color schemes - {: .d-inline-block } New @@ -176,17 +175,24 @@ Any HTML added to this file will be inserted before the closing `<head>` tag. Th Note that by default, this file has the following contents: +{% raw %} + ```html <link rel="shortcut icon" href="{{ 'favicon.ico' | relative_url }}" type="image/x-icon"> ``` +{% endraw %} #### Example: Custom Favicon {: .no_toc } To add a custom favicon, create `_includes/head_custom.html` and add: + +{% raw %} + ```html <link rel="shortcut icon" href="{{ 'favicon.ico' | relative_url }}" type="image/x-icon"> ``` +{% endraw %} If *no favicon* is desired, one needs to have a *blank* `_includes/head_custom.html`. -- GitLab