From 62f222050ce96c786a03515bcbd99f0b46f3c2cb Mon Sep 17 00:00:00 2001 From: Michal Jirku Date: Wed, 25 Nov 2020 21:59:09 +0100 Subject: [PATCH] Autogen apple-touch-icons too --- _includes/head.html | 4 +++- .../{apple-touch-icon.png => favicon-180x180.png} | Bin 2 files changed, 3 insertions(+), 1 deletion(-) rename assets/{apple-touch-icon.png => favicon-180x180.png} (100%) diff --git a/_includes/head.html b/_includes/head.html index bb9ac82..6605723 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -12,12 +12,14 @@ +{% assign apple_res = "152x152,180x180,167x167" | split: ',' -%} {% for file in site.static_files -%} {% if file.path contains '/assets/favicon-' -%} {% assign parts = file.basename | split: '-' %} +{% if apple_res contains parts[1] %} +{% endif -%} {% endif -%} {% endfor %} - {% feed_meta %} diff --git a/assets/apple-touch-icon.png b/assets/favicon-180x180.png similarity index 100% rename from assets/apple-touch-icon.png rename to assets/favicon-180x180.png