🐛 fix(favicon): use get_url
for favicon
This commit is contained in:
parent
78f97e17b4
commit
ab4b523f9c
@ -215,8 +215,8 @@ short_date_format = ""
|
||||
# Custom separator used in title tag and posts metadata (between date, time to read, and tags).
|
||||
separator = "•"
|
||||
|
||||
# Full path after the base URL required. So if you were to place it in "static" it would be "/favicon.ico"
|
||||
favicon = ""
|
||||
# Full path after the base URL required. So if you were to place it in "static" it would be "/favicon.png"
|
||||
favicon = "img/seedling.png"
|
||||
|
||||
# Add an emoji here to use it as favicon.
|
||||
# Compatibility: https://caniuse.com/link-icon-svg
|
||||
|
BIN
static/img/seedling.png
Normal file
BIN
static/img/seedling.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
@ -8,7 +8,7 @@
|
||||
|
||||
{# 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 %}
|
||||
{% 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>'>
|
||||
|
Loading…
x
Reference in New Issue
Block a user