diff --git a/templates/partials/head.html b/templates/partials/head.html
index d57fbf9..3d60f02 100644
--- a/templates/partials/head.html
+++ b/templates/partials/head.html
@@ -37,12 +37,12 @@
{% endif %}
{% if config.extra.emoji_favicon %}
-
- {% endif %}
- {% if config.extra.animated_favicon %}
+
+ {% elif config.extra.animated_favicon %}
+ {% else %}
+
{% endif %}
-