mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
tpl/tplimpl: Change calls to simple versions of embedded shortcodes
Closes #13700
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
6def5a1ba9
commit
81426998b8
@@ -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") "" -}}
|
||||
|
@@ -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 }}
|
||||
|
||||
|
@@ -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") "" -}}
|
||||
|
@@ -460,7 +460,6 @@ title: p1 (de)
|
||||
}
|
||||
|
||||
func TestVimeoShortcode(t *testing.T) {
|
||||
t.Skip("Fix me: Upstream API changes")
|
||||
t.Parallel()
|
||||
|
||||
files := `
|
||||
|
Reference in New Issue
Block a user