mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-17 02:34:42 -04:00
HTTPS links to Vimeo embeds
This matches what Vimeo recommends and Hugo's included shortcodes.
This commit is contained in:
parent
a9d0e7c681
commit
e8bf224974
@ -252,11 +252,11 @@ Would load the template found at `/layouts/shortcodes/vimeo.html`:
|
|||||||
{{< code file="/layouts/shortcodes/vimeo.html" >}}
|
{{< code file="/layouts/shortcodes/vimeo.html" >}}
|
||||||
{{ if .IsNamedParams }}
|
{{ if .IsNamedParams }}
|
||||||
<div class="{{ if .Get "class" }}{{ .Get "class" }}{{ else }}vimeo-container{{ end }}">
|
<div class="{{ if .Get "class" }}{{ .Get "class" }}{{ else }}vimeo-container{{ end }}">
|
||||||
<iframe src="//player.vimeo.com/video/{{ .Get "id" }}" allowfullscreen></iframe>
|
<iframe src="https://player.vimeo.com/video/{{ .Get "id" }}" allowfullscreen></iframe>
|
||||||
</div>
|
</div>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div class="{{ if len .Params | eq 2 }}{{ .Get 1 }}{{ else }}vimeo-container{{ end }}">
|
<div class="{{ if len .Params | eq 2 }}{{ .Get 1 }}{{ else }}vimeo-container{{ end }}">
|
||||||
<iframe src="//player.vimeo.com/video/{{ .Get 0 }}" allowfullscreen></iframe>
|
<iframe src="https://player.vimeo.com/video/{{ .Get 0 }}" allowfullscreen></iframe>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{< /code >}}
|
{{< /code >}}
|
||||||
@ -265,10 +265,10 @@ Would be rendered as:
|
|||||||
|
|
||||||
{{< code file="vimeo-iframes.html" copy="false" >}}
|
{{< code file="vimeo-iframes.html" copy="false" >}}
|
||||||
<div class="vimeo-container">
|
<div class="vimeo-container">
|
||||||
<iframe src="//player.vimeo.com/video/49718712" allowfullscreen></iframe>
|
<iframe src="https://player.vimeo.com/video/49718712" allowfullscreen></iframe>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-video">
|
<div class="flex-video">
|
||||||
<iframe src="//player.vimeo.com/video/49718712" allowfullscreen></iframe>
|
<iframe src="https://player.vimeo.com/video/49718712" allowfullscreen></iframe>
|
||||||
</div>
|
</div>
|
||||||
{{< /code >}}
|
{{< /code >}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user