diff --git a/config.toml b/config.toml index 0abc03d..55d487c 100644 --- a/config.toml +++ b/config.toml @@ -28,6 +28,8 @@ smart_punctuation = true primary_color = "#ff7800" # Same as primary_color, but with 20% opacity primary_color_alpha = "rgba(255, 120, 0, 0.2)" +# Emoji favicon; can be set per-page or even section. +emoji_favicon = false # If the favicon is GIF or not animated_favicon = false # Tera date format (not used in comments!), diff --git a/templates/includes/head.html b/templates/includes/head.html index be59554..d120da6 100644 --- a/templates/includes/head.html +++ b/templates/includes/head.html @@ -1,14 +1,18 @@ - + - {% if page.title %} {{ page.title }} - {{ config.title }} - {% elif section.title %} {{ section.title }} - {{ config.title }} - {% else %} {{ config.title }} {% endif %} + {% if page.title %} + {{ page.title }} - {{ config.title }} + {% elif section.title %} + {{ section.title }} - {{ config.title }} + {% else %} + {{ config.title }} + {% endif %} @@ -25,12 +29,22 @@ } - {% if config.extra.animated_favicon %} + {% if page.extra.emoji_favicon %} + + + {% elif section.extra.emoji_favicon %} + + + {% elif config.extra.emoji_favicon %} + + + {% elif config.extra.animated_favicon %} + {% else %} + {% endif %} -