Skip to content

Commit 94de9a6

Browse files
removed fonts and use youtube no cokies
1 parent af75174 commit 94de9a6

File tree

4 files changed

+12
-23
lines changed

4 files changed

+12
-23
lines changed

content/english/blog/012_from-hero-to-zero-with-lms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ _Tab. 1: Short-codes for references on the left and the rendered result in LiaSc
106106
| `[link](url.html)` | [link](https://LiaScript.github.io) |
107107
| `![image](url.jpg)` | <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/7a/OER_Logo_Open_Educational_Resources.png/296px-OER_Logo_Open_Educational_Resources.png" /> |
108108
| `[link](url.html)` | <audio controls="controls" style="display: inline-block" src="https://www.tutorialrepublic.com/examples/audio/birds.mp3">Your browser does not support the HTML5 audio element.</audio> |
109-
| `!?[video](url.mp4)` | <iframe width="560" height="315" style="display: inline-block" src="https://www.youtube.com/embed/Mg35D4dLyXc" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> |
109+
| `!?[video](url.mp4)` | <iframe width="560" height="315" style="display: inline-block" src="https://www.youtube-nocookie.com/embed/Mg35D4dLyXc?si=HRgCW3mMkEtPKgU_" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe> |
110110

111111
However, as the screen-casts reveal, integrating multimedia content to one of the LMSs seems to be a more challenging task and requires to deal with a couple of user interfaces. The overall average time-on-task was 3:06 minutes and required 11 clicks and 5 page changes.
112112

themes/hugoplate/layouts/partials/essentials/head.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525

2626

2727
<!-- google analytics -->
28-
{{ if and site.Config.Services.GoogleAnalytics.ID (ne site.Config.Services.GoogleAnalytics.ID "G-MEASUREMENT_ID") }}
28+
{{/* if and site.Config.Services.GoogleAnalytics.ID (ne site.Config.Services.GoogleAnalytics.ID "G-MEASUREMENT_ID") }}
2929
{{ template "_internal/google_analytics.html" . }}
30-
{{ end }}
30+
{{ end */}}
3131

3232

3333
<!-- google tag manager -->

themes/hugoplate/layouts/partials/essentials/style.html

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,8 @@
11
<!-- DNS preconnect -->
22
<meta http-equiv="x-dns-prefetch-control" content="on" />
33
<link rel="preconnect" href="https://use.fontawesome.com" crossorigin />
4-
<link rel="preconnect" href="//cdnjs.cloudflare.com" />
5-
<link rel="dns-prefetch" href="https://use.fontawesome.com" />
6-
<link rel="dns-prefetch" href="//cdnjs.cloudflare.com" />
7-
<link rel="dns-prefetch" href="//fonts.googleapis.com" />
8-
<link rel="dns-prefetch" href="//connect.facebook.net" />
9-
<link rel="dns-prefetch" href="//platform.linkedin.com" />
10-
<link rel="dns-prefetch" href="//platform.twitter.com" />
114

125
<!-- google fonts -->
13-
{{ $pf:= site.Data.theme.fonts.font_family.primary }}
14-
{{ $sf:= site.Data.theme.fonts.font_family.secondary }}
15-
<link rel="preconnect" href="https://fonts.googleapis.com" />
16-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
17-
<script>
18-
(function () {
19-
const googleFont = document.createElement("link");
20-
googleFont.href = "https://fonts.googleapis.com/css2?family={{$pf | safeURL}}{{with $sf}}&family={{. | safeURL}}{{end}}&display=swap";
21-
googleFont.type = "text/css";
22-
googleFont.rel = "stylesheet";
23-
document.head.appendChild(googleFont);
24-
})();
25-
</script>
266

277
<!-- plugins + stylesheet -->
288
{{ $styles := slice }}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<div
2+
style="position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden;">
3+
<iframe
4+
src="https://www.youtube-nocookie.com/embed/{{ index .Params 0 }}"
5+
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"
6+
allowfullscreen
7+
frameborder="0"
8+
title="YouTube Video"></iframe>
9+
</div>

0 commit comments

Comments
 (0)