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
This commit is contained in:
Matt Wang 2022-12-27 09:41:41 -08:00 committed by GitHub
parent 0b44f5ba7f
commit 91449f1aee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`.