diff --git a/layouts/shortcodes/codeberg.html b/layouts/shortcodes/codeberg.html index 067175f9..ccaeca18 100644 --- a/layouts/shortcodes/codeberg.html +++ b/layouts/shortcodes/codeberg.html @@ -56,4 +56,6 @@ data-repo-id="{{ $id }}"> +{{- else -}} + {{ warnf "codeberg shortcode: unable to fetch %q: %s" $codebergURL .Position }} {{- end -}} diff --git a/layouts/shortcodes/codeimporter.html b/layouts/shortcodes/codeimporter.html index e4467ddf..6ecdc003 100644 --- a/layouts/shortcodes/codeimporter.html +++ b/layouts/shortcodes/codeimporter.html @@ -15,7 +15,7 @@ {{ end }} {{ if gt $startLine $endLine }} - {{ errorf "Code Importer Shortcode - startLine is greater than endLine" . }} + {{ errorf "codeimporter shortcode: startLine is greater than endLine" . }} {{ end }} {{ $selectedLines := first $endLine $lines }} @@ -23,5 +23,5 @@ {{ $codeBlock := printf "```%s\n%s\n```" $type (delimit $selectedLines "\n") }} {{ $codeBlock | markdownify }} {{ else }} - {{ errorf "Code Importer Shortcode - Unable to get remote resource" . }} + {{ warnf "codeimporter shortcode: unable to fetch %q: %s" $url .Position }} {{ end }} diff --git a/layouts/shortcodes/forgejo.html b/layouts/shortcodes/forgejo.html index 666f5f0a..775a3a59 100644 --- a/layouts/shortcodes/forgejo.html +++ b/layouts/shortcodes/forgejo.html @@ -56,4 +56,6 @@ data-repo-id="{{ $id }}"> +{{- else -}} + {{ warnf "forgejo shortcode: unable to fetch %q: %s" $forgejoURL .Position }} {{- end -}} diff --git a/layouts/shortcodes/gitea.html b/layouts/shortcodes/gitea.html index 511ee4ae..fcf0f8fb 100644 --- a/layouts/shortcodes/gitea.html +++ b/layouts/shortcodes/gitea.html @@ -56,4 +56,6 @@ data-repo-id="{{ $id }}"> +{{- else -}} + {{ warnf "gitea shortcode: unable to fetch %q: %s" $giteaURL .Position }} {{- end -}} diff --git a/layouts/shortcodes/github.html b/layouts/shortcodes/github.html index d333972b..05be3d4e 100644 --- a/layouts/shortcodes/github.html +++ b/layouts/shortcodes/github.html @@ -4,9 +4,8 @@ {{- $githubThumbnailURL := print "https://opengraph.githubassets.com/0/" (.Get "repo") -}} {{- $showThumbnail := .Get "showThumbnail" | default true -}} - -