File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
tpl/tplimpl/embedded/templates/_shortcodes Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 20
20
{{- $request := printf "https://publish.twitter.com/oembed?%s" $query -}}
21
21
{{- with try (resources.GetRemote $request) -}}
22
22
{{- with .Err -}}
23
- {{- errorf "%s" . -}}
23
+ {{- warnidf "shortcode-twitter-getremote" "The %q shortcode was unable to retrieve the remote data: %s. See %s" $.ctx.Name . $.ctx.Position -}}
24
24
{{- else with .Value -}}
25
25
{{- (. | transform.Unmarshal).html | safeHTML -}}
26
26
{{- else -}}
Original file line number Diff line number Diff line change 16
16
{{- $request := printf "https://publish.twitter.com/oembed?%s" $query -}}
17
17
{{- with try (resources.GetRemote $request) -}}
18
18
{{- with .Err -}}
19
- {{- errorf "%s" . -}}
19
+ {{- warnidf "shortcode-twitter-simple-getremote" "The %q shortcode was unable to retrieve the remote data: %s. See %s" $.ctx.Name . $.ctx.Position -}}
20
20
{{- else with .Value -}}
21
21
{{- if not site.Config.Services.Twitter.DisableInlineCSS }}
22
22
{{- template "__h_simple_twitter_css" (dict "ctx" $.ctx) }}
Original file line number Diff line number Diff line change 25
25
{{- $request := printf "https://vimeo.com/api/oembed.json?%s" $query -}}
26
26
{{- with try (resources.GetRemote $request) -}}
27
27
{{- with .Err -}}
28
- {{- errorf "%s" . -}}
28
+ {{- warnidf "shortcode-vimeo-simple" "The %q shortcode was unable to retrieve the remote data: %s. See %s" $.ctx.Name . $.ctx.Position -}}
29
29
{{- else with .Value -}}
30
30
{{- with . | transform.Unmarshal -}}
31
31
{{- $class := printf "%s %s" "s_video_simple" "__h_video" -}}
Original file line number Diff line number Diff line change 19
19
{{- $request := printf "https://publish.x.com/oembed?%s" $query -}}
20
20
{{- with try (resources.GetRemote $request) -}}
21
21
{{- with .Err -}}
22
- {{- errorf "%s" . -}}
22
+ {{- warnidf "shortcode-x-getremote" "The %q shortcode was unable to retrieve the remote data: %s. See %s" $.ctx.Name . $.ctx.Position -}}
23
23
{{- else with .Value -}}
24
24
{{- (. | transform.Unmarshal).html | safeHTML -}}
25
25
{{- else -}}
Original file line number Diff line number Diff line change 15
15
{{- $request := printf "https://publish.x.com/oembed?%s" $query -}}
16
16
{{- with try (resources.GetRemote $request) -}}
17
17
{{- with .Err -}}
18
- {{- errorf "%s" . -}}
18
+ {{- warnidf "shortcode-x-simple-getremote" "The %q shortcode was unable to retrieve the remote data: %s. See %s" $.ctx.Name . $.ctx.Position -}}
19
19
{{- else with .Value -}}
20
20
{{- if not site.Config.Services.X.DisableInlineCSS }}
21
21
{{- template "__h_simple_x_css" (dict "ctx" $.ctx) }}
You can’t perform that action at this time.
0 commit comments