🐛 fix(favicon): use `get_url` for favicon

main
welpo 2 years ago
parent 78f97e17b4
commit ab4b523f9c
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

@ -215,8 +215,8 @@ short_date_format = ""
# Custom separator used in title tag and posts metadata (between date, time to read, and tags). # Custom separator used in title tag and posts metadata (between date, time to read, and tags).
separator = "•" separator = "•"
# Full path after the base URL required. So if you were to place it in "static" it would be "/favicon.ico" # Full path after the base URL required. So if you were to place it in "static" it would be "/favicon.png"
favicon = "" favicon = "img/seedling.png"
# Add an emoji here to use it as favicon. # Add an emoji here to use it as favicon.
# Compatibility: https://caniuse.com/link-icon-svg # Compatibility: https://caniuse.com/link-icon-svg

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

@ -8,7 +8,7 @@
{# Favicon #} {# Favicon #}
{% if config.extra.favicon %} {% if config.extra.favicon %}
<link rel="icon" type="image/png" href={{ config.extra.favicon }} /> <link rel="icon" type="image/png" href="{{ get_url(path=config.extra.favicon) }}"/>
{% endif %} {% endif %}
{% if config.extra.favicon_emoji %} {% if config.extra.favicon_emoji %}
<link rel=icon href='data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg" viewBox="0 0 105 55"><text y=".7em" font-size="90">{{ config.extra.favicon_emoji }}</text></svg>'> <link rel=icon href='data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg" viewBox="0 0 105 55"><text y=".7em" font-size="90">{{ config.extra.favicon_emoji }}</text></svg>'>

Loading…
Cancel
Save