Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/spech66/materialize-bp-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pech <windows@spech.de>2019-10-08 19:34:34 +0300
committerSebastian Pech <windows@spech.de>2019-10-08 19:34:34 +0300
commit779e8cd6517dcf256809fd0f905dd5bb0c161cc8 (patch)
tree117702bdc1235c05dfbbb111758b38a04e9ebebe /layouts
parent137b5e1313bc2422a80326aff972b5e7a66067a5 (diff)
Video respects Privacy.YouTube.Disable
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/content_card_header.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/content_card_header.html b/layouts/partials/content_card_header.html
index 4a0d4fd..1092d3f 100644
--- a/layouts/partials/content_card_header.html
+++ b/layouts/partials/content_card_header.html
@@ -1,4 +1,4 @@
-{{ if eq .Type "video" }}
+{{ if and (eq .Type "video") (not .Site.Config.Privacy.YouTube.Disable) }}
<div class="video-container">
{{ if .Scratch.Get "fullsize" }}
<iframe src="https://www.youtube-nocookie.com/embed/{{ .Params.youtube }}?rel=0" width="100%" height="600px" frameborder="0" allowfullscreen></iframe>