Skip to content

Commit

Permalink
Use privacy aware embed options for YouTube & Vimeo (mmistakes#1964)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-michel authored and mmistakes committed Nov 21, 2018
1 parent 855cb8d commit 8bea350
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions _includes/video
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<!-- Courtesy of embedresponsively.com //-->
<div class="responsive-video-container">
{% if video_provider == "vimeo" %}
<iframe src="https://player.vimeo.com/video/{{ video_id }}" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<iframe src="https://player.vimeo.com/video/{{ video_id }}?dnt=true" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
{% elsif video_provider == "youtube" %}
<iframe src="https://www.youtube.com/embed/{{ video_id }}" frameborder="0" allowfullscreen></iframe>
<iframe src="https://www.youtube-nocookie.com/embed/{{ video_id }}" frameborder="0" allowfullscreen></iframe>
{% endif %}
</div>
2 changes: 1 addition & 1 deletion docs/_docs/14-helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ And then drop-in the feature row include in the body where you'd like it to appe

## Responsive Video Embed

Embed a video from YouTube or Vimeo that responsively sizes to fit the width of its parent.
Embed a video from YouTube or Vimeo that responsively sizes to fit the width of its parent. To help with GDPR compliance, the theme is using the privacy enhanced version of both providers out of the box.

| Parameter | Required | Description |
| ---------- | ------------ | ---------------------------------------------------------- |
Expand Down

0 comments on commit 8bea350

Please sign in to comment.