Skip to content

Commit 84d7a10

Browse files
authored
tpl/tplimpl: Fix vimeo shortcode test to accommodate API changes
Fixes #13687
1 parent 325a0db commit 84d7a10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
{{- $thumbnail := .thumbnail_url -}}
3838
{{- $original := $thumbnail | replaceRE "(_.*\\.)" "." -}}
3939
<div class="{{ $class }}">
40-
<a href="{{ .provider_url }}{{ .video_id }}" rel="noopener" target="_blank">
40+
<a href="{{ .provider_url }}{{ .video_id | string }}" rel="noopener" target="_blank">
4141
<img src="{{ $thumbnail }}" srcset="{{ $thumbnail }} 1x, {{ $original }} 2x" alt="{{ .title }}">
4242
<div class="play">
4343
{{ template "__h_simple_icon_play" $.ctx.Page }}

tpl/tplimpl/shortcodes_integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ Content: {{ .Content }}
495495
// Simple mode
496496
files = strings.ReplaceAll(files, "privacy.vimeo.simple = false", "privacy.vimeo.simple = true")
497497
b = hugolib.Test(t, files)
498-
b.AssertFileContent("public/p1/index.html", "c5bf16d87e2a370b")
498+
b.AssertFileContent("public/p1/index.html", "04d861fc957ee638")
499499

500500
// Simple mode with non-existent id
501501
files = strings.ReplaceAll(files, "{{< vimeo 55073825 >}}", "{{< vimeo __id_does_not_exist__ >}}")

0 commit comments

Comments
 (0)