mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
tpl/tplimpl: Fix vimeo shortcode test to accommodate API changes
Fixes #13687
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
{{- $thumbnail := .thumbnail_url -}}
|
||||
{{- $original := $thumbnail | replaceRE "(_.*\\.)" "." -}}
|
||||
<div class="{{ $class }}">
|
||||
<a href="{{ .provider_url }}{{ .video_id }}" rel="noopener" target="_blank">
|
||||
<a href="{{ .provider_url }}{{ .video_id | string }}" rel="noopener" target="_blank">
|
||||
<img src="{{ $thumbnail }}" srcset="{{ $thumbnail }} 1x, {{ $original }} 2x" alt="{{ .title }}">
|
||||
<div class="play">
|
||||
{{ template "__h_simple_icon_play" $.ctx.Page }}
|
||||
|
Reference in New Issue
Block a user