chore: add warn message for GetRemote usage in shortcodes

This commit is contained in:
ZhenShuo Leo
2025-07-13 19:56:39 +08:00
parent 2c71bda97f
commit d8bdf7e316
6 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -2,5 +2,5 @@
{{ with resources.GetRemote (urls.Parse $url) }}
{{ .Content | markdownify }}
{{ else }}
{{ errorf "Mardown Importer Shortcode - Unable to get remote resource" . }}
{{ warnf "mdimporter shortcode: unable to fetch %q: %s" $url .Position }}
{{ end }}