From a70353d5c0305c5b16016ca1c18da4c5c568f65c Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Wed, 12 Jan 2022 14:25:25 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=85=20Catch=20icon=20resource=20not=20?= =?UTF-8?q?found=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- i18n/de.yaml | 1 - i18n/en.yaml | 1 - i18n/es.yaml | 1 - i18n/fr.yaml | 1 - i18n/pt-BR.yaml | 1 - i18n/zh.yaml | 1 - layouts/shortcodes/icon.html | 2 +- 7 files changed, 1 insertion(+), 7 deletions(-) diff --git a/i18n/de.yaml b/i18n/de.yaml index 631707bd..53f5c894 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -37,4 +37,3 @@ sharing: shortcode: recent_articles: "Kürzlich" - icon_none: "Icon nicht gefunden." diff --git a/i18n/en.yaml b/i18n/en.yaml index 6cb5c3d5..65f7582e 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -37,4 +37,3 @@ sharing: shortcode: recent_articles: "Recent" - icon_none: "Icon not found." diff --git a/i18n/es.yaml b/i18n/es.yaml index c8afbc09..950bcd25 100644 --- a/i18n/es.yaml +++ b/i18n/es.yaml @@ -37,4 +37,3 @@ sharing: shortcode: recent_articles: "Reciente" - icon_none: "Icono no encontrado." diff --git a/i18n/fr.yaml b/i18n/fr.yaml index b3078535..6d729be8 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -37,4 +37,3 @@ sharing: shortcode: recent_articles: "Recent" - icon_none: "Icone non trouvée." diff --git a/i18n/pt-BR.yaml b/i18n/pt-BR.yaml index 2396bc7b..9b5df070 100644 --- a/i18n/pt-BR.yaml +++ b/i18n/pt-BR.yaml @@ -37,4 +37,3 @@ sharing: shortcode: recent_articles: "Recente" - icon_none: "Ícone não encontrado." diff --git a/i18n/zh.yaml b/i18n/zh.yaml index ec93aa7e..1734f731 100644 --- a/i18n/zh.yaml +++ b/i18n/zh.yaml @@ -36,4 +36,3 @@ sharing: shortcode: recent_articles: "最近的文章" - icon_none: "未找到图标。" diff --git a/layouts/shortcodes/icon.html b/layouts/shortcodes/icon.html index 1db633d0..af699236 100644 --- a/layouts/shortcodes/icon.html +++ b/layouts/shortcodes/icon.html @@ -4,5 +4,5 @@ {{ $icon.Content | safeHTML }} {{ else }} - {{ i18n "shortcode.icon_none" }} + {{ errorf `[CONGO] Shortcode "icon" error in "%s": Resource "%s" not found. Check the path is correct or remove the shortcode.` .Page.Path (printf "icons/%s.svg" ($.Get 0)) }} {{ end }}