Skip to content

Commit 8142699

Browse files
jmooringbep
authored andcommitted
tpl/tplimpl: Change calls to simple versions of embedded shortcodes
Closes #13700
1 parent 6def5a1 commit 8142699

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

tpl/tplimpl/embedded/templates/_shortcodes/twitter.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{- $pc := site.Config.Privacy.Twitter -}}
33
{{- if not $pc.Disable -}}
44
{{- if $pc.Simple -}}
5-
{{- template "_internal/shortcodes/twitter_simple.html" . -}}
5+
{{- template "_shortcodes/twitter_simple.html" . -}}
66
{{- else -}}
77
{{- $id := or (.Get "id") "" -}}
88
{{- $user := or (.Get "user") "" -}}

tpl/tplimpl/embedded/templates/_shortcodes/vimeo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{{- $pc := site.Config.Privacy.Vimeo }}
1919
{{- if not $pc.Disable }}
2020
{{- if $pc.Simple }}
21-
{{- template "_internal/shortcodes/vimeo_simple.html" . }}
21+
{{- template "_shortcodes/vimeo_simple.html" . }}
2222
{{- else }}
2323
{{- $dnt := cond $pc.EnableDNT 1 0 }}
2424

tpl/tplimpl/embedded/templates/_shortcodes/x.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{- $pc := site.Config.Privacy.X -}}
22
{{- if not $pc.Disable -}}
33
{{- if $pc.Simple -}}
4-
{{- template "_internal/shortcodes/x_simple.html" . -}}
4+
{{- template "_shortcodes/x_simple.html" . -}}
55
{{- else -}}
66
{{- $id := or (.Get "id") "" -}}
77
{{- $user := or (.Get "user") "" -}}

tpl/tplimpl/shortcodes_integration_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,6 @@ title: p1 (de)
460460
}
461461

462462
func TestVimeoShortcode(t *testing.T) {
463-
t.Skip("Fix me: Upstream API changes")
464463
t.Parallel()
465464

466465
files := `

0 commit comments

Comments
 (0)