feat: allow using emojis as favicon 🌱

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

@ -35,6 +35,10 @@ 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.ico"
favicon = "" favicon = ""
# Add an emoji here to use it as favicon.
# Compatibility: https://caniuse.com/link-icon-svg
favicon_emoji = "🌱"
# This header image is used for SEO. For example if you were to share an image via Messenger/Instagram/Twitter a preview picture is also presented # This header image is used for SEO. For example if you were to share an image via Messenger/Instagram/Twitter a preview picture is also presented
headerImage = "" headerImage = ""

File diff suppressed because one or more lines are too long

@ -10,6 +10,9 @@
{% 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={{ config.extra.favicon }} />
{% endif %} {% 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>'>
{% endif %}
{# RSS #} {# RSS #}
<link rel="alternate" type="application/atom+xml" title="{{ config.title }}" href="{{ get_url(path="atom.xml", <link rel="alternate" type="application/atom+xml" title="{{ config.title }}" href="{{ get_url(path="atom.xml",

@ -30,6 +30,13 @@ long_date_format = "%d %B %Y"
separator = "•" separator = "•"
# Full path after the base URL required. So if you were to place it in "static" it would be "/favicon.ico"
favicon = ""
# Add an emoji here to use it as favicon.
# Compatibility: https://caniuse.com/link-icon-svg
favicon_emoji = "🌱"
menu = [ menu = [
{ name = "blog", url = "$BASE_URL/blog" }, { name = "blog", url = "$BASE_URL/blog" },
{ name = "archive", url = "$BASE_URL/archive" }, { name = "archive", url = "$BASE_URL/archive" },

Loading…
Cancel
Save