tpl/tplimpl: Change calls to simple versions of embedded shortcodes

Closes #13700
This commit is contained in:
Joe Mooring
2025-05-11 11:39:42 -07:00
committed by Bjørn Erik Pedersen
parent 6def5a1ba9
commit 81426998b8
4 changed files with 3 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
{{- $pc := site.Config.Privacy.Twitter -}}
{{- if not $pc.Disable -}}
{{- if $pc.Simple -}}
{{- template "_internal/shortcodes/twitter_simple.html" . -}}
{{- template "_shortcodes/twitter_simple.html" . -}}
{{- else -}}
{{- $id := or (.Get "id") "" -}}
{{- $user := or (.Get "user") "" -}}

View File

@@ -18,7 +18,7 @@ title, then loading.
{{- $pc := site.Config.Privacy.Vimeo }}
{{- if not $pc.Disable }}
{{- if $pc.Simple }}
{{- template "_internal/shortcodes/vimeo_simple.html" . }}
{{- template "_shortcodes/vimeo_simple.html" . }}
{{- else }}
{{- $dnt := cond $pc.EnableDNT 1 0 }}

View File

@@ -1,7 +1,7 @@
{{- $pc := site.Config.Privacy.X -}}
{{- if not $pc.Disable -}}
{{- if $pc.Simple -}}
{{- template "_internal/shortcodes/x_simple.html" . -}}
{{- template "_shortcodes/x_simple.html" . -}}
{{- else -}}
{{- $id := or (.Get "id") "" -}}
{{- $user := or (.Get "user") "" -}}

View File

@@ -460,7 +460,6 @@ title: p1 (de)
}
func TestVimeoShortcode(t *testing.T) {
t.Skip("Fix me: Upstream API changes")
t.Parallel()
files := `