mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Allow specifying a custom favicon
Add an extra setting to specify a custom favicon: ``` extra: favicon: favicon.ico ```
This commit is contained in:
parent
4b9c8b9a49
commit
966587a257
@ -58,7 +58,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- Favicon -->
|
<!-- Favicon -->
|
||||||
{% set icon = icon | default("assets/images/favicon.ico") %}
|
{% set icon = config.extra.favicon | default("assets/images/favicon.ico") %}
|
||||||
<link rel="shortcut icon" type="image/x-icon"
|
<link rel="shortcut icon" type="image/x-icon"
|
||||||
href="{{ base_url }}/{{ icon }}" />
|
href="{{ base_url }}/{{ icon }}" />
|
||||||
<link rel="icon" type="image/x-icon"
|
<link rel="icon" type="image/x-icon"
|
||||||
@ -270,4 +270,4 @@
|
|||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user