Skip to content

Commit fcaab7d

Browse files
Merge pull request #966 from andrea-kyurchiev/hotfix/only-load-youtube-videos-on-home
hotfix: only load youtube videos where theyre shown
2 parents 90e4772 + 0fc174c commit fcaab7d

6 files changed

Lines changed: 8 additions & 0 deletions

File tree

content/en/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "InnerSource Commons"
3+
fetchYoutubeVideos: true
34
---
45

56

content/fr/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "InnerSource Commons"
3+
fetchYoutubeVideos: true
34
---
45

56

content/ja/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "InnerSource Commons"
3+
fetchYoutubeVideos: true
34
---
45

56

content/ja/about/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "InnerSource Commons"
3+
fetchYoutubeVideos: true
34
---
45

56

content/pt-br/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "InnerSource Commons"
3+
fetchYoutubeVideos: true
34
---
45

56
<section class="banner banner-head">

layouts/partials/footer.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@
6868
});
6969
</script>
7070
{{ end }}
71+
72+
{{ if .Params.fetchYoutubeVideos }}
7173
<script>
7274
$('#youmax').youmax({
7375
apiKey:'AIzaSyCTmhVwOZhhT1WceQm9MobWFuJIA6lI-Dw',
@@ -85,6 +87,7 @@
8587
});
8688
</script>
8789

90+
{{ end }}
8891
<!-- Google Analytics compliant with GDPR -->
8992
<script async src="https://www.googletagmanager.com/gtag/js?id=G-H7179Q3Y3T"></script>
9093
<script>

0 commit comments

Comments
 (0)