🥅 Catch icon resource not found error

This commit is contained in:
James Panther
2022-01-12 14:25:25 +11:00
parent 3b5b93d965
commit a70353d5c0
7 changed files with 1 additions and 7 deletions
-1
View File
@@ -37,4 +37,3 @@ sharing:
shortcode: shortcode:
recent_articles: "Kürzlich" recent_articles: "Kürzlich"
icon_none: "Icon nicht gefunden."
-1
View File
@@ -37,4 +37,3 @@ sharing:
shortcode: shortcode:
recent_articles: "Recent" recent_articles: "Recent"
icon_none: "Icon not found."
-1
View File
@@ -37,4 +37,3 @@ sharing:
shortcode: shortcode:
recent_articles: "Reciente" recent_articles: "Reciente"
icon_none: "Icono no encontrado."
-1
View File
@@ -37,4 +37,3 @@ sharing:
shortcode: shortcode:
recent_articles: "Recent" recent_articles: "Recent"
icon_none: "Icone non trouvée."
-1
View File
@@ -37,4 +37,3 @@ sharing:
shortcode: shortcode:
recent_articles: "Recente" recent_articles: "Recente"
icon_none: "Ícone não encontrado."
-1
View File
@@ -36,4 +36,3 @@ sharing:
shortcode: shortcode:
recent_articles: "最近的文章" recent_articles: "最近的文章"
icon_none: "未找到图标。"
+1 -1
View File
@@ -4,5 +4,5 @@
{{ $icon.Content | safeHTML }} {{ $icon.Content | safeHTML }}
</span> </span>
{{ else }} {{ else }}
<em>{{ i18n "shortcode.icon_none" }}</em> {{ 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 }} {{ end }}