🥅 Catch icon resource not found error

pull/100/head
James Panther 2022-01-12 14:25:25 +11:00
parent 3b5b93d965
commit a70353d5c0
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
7 changed files with 1 additions and 7 deletions

View File

@ -37,4 +37,3 @@ sharing:
shortcode: shortcode:
recent_articles: "Kürzlich" recent_articles: "Kürzlich"
icon_none: "Icon nicht gefunden."

View File

@ -37,4 +37,3 @@ sharing:
shortcode: shortcode:
recent_articles: "Recent" recent_articles: "Recent"
icon_none: "Icon not found."

View File

@ -37,4 +37,3 @@ sharing:
shortcode: shortcode:
recent_articles: "Reciente" recent_articles: "Reciente"
icon_none: "Icono no encontrado."

View File

@ -37,4 +37,3 @@ sharing:
shortcode: shortcode:
recent_articles: "Recent" recent_articles: "Recent"
icon_none: "Icone non trouvée."

View File

@ -37,4 +37,3 @@ sharing:
shortcode: shortcode:
recent_articles: "Recente" recent_articles: "Recente"
icon_none: "Ícone não encontrado."

View File

@ -36,4 +36,3 @@ sharing:
shortcode: shortcode:
recent_articles: "最近的文章" recent_articles: "最近的文章"
icon_none: "未找到图标。"

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 }}