added tag link in youtube hugo post, twitcard updates

This commit is contained in:
Wouter Groeneveld 2021-06-15 21:51:45 +02:00
parent b4298197a1
commit fd26f55e21
2 changed files with 6 additions and 7 deletions

View File

@ -12,7 +12,7 @@ When [I asked Ruben](/notes/2021/06/14h19m55s52/) how his lovely image-with-play
Back up a minute.
What's the problem? Hugo---or any other CMS, for that matter---allows you to easily embed external (YouTube) videos by using a shortcode (`{{ < youtube HLM9VzWv1GM > }}`) or even copy-pasting an url (https://www.youtube.com/watch?v=SjDMwsbaSd8). The result is an embedded video your visitors can click on without having to surf to the third party itself. However. The (not so) big reveal: of course Google smacks your visitors around with the usual cookies coming from multiple suspicious looking domains. Even by resorting to `youtube-nocookie.com`, there's still too much visitor activity siphoned off from your site towards Alphabeat's data center. As an example, here's a screenshot of my uBlock Origin window from [my retro gamer E3 2021 blog post](https://jefklakscodex.com/articles/features/e3-2021-pc/) that used to embed YouTube videos:
What exactly is the problem? [Hugo](/tags/hugo)---or any other CMS, for that matter---allows you to easily embed external (YouTube) videos by using a shortcode (`{{ < youtube HLM9VzWv1GM > }}`) or even copy-pasting an url (https://www.youtube.com/watch?v=SjDMwsbaSd8). The result is an embedded video your visitors can click on without having to surf to the third party itself. However. The (not so) big reveal: of course Google smacks your visitors around with the usual cookies coming from multiple suspicious looking domains. Even by resorting to `youtube-nocookie.com`, there's still too much visitor activity siphoned off from your site towards Alphabeat's data center. As an example, here's a screenshot of my uBlock Origin window from [my retro gamer E3 2021 blog post](https://jefklakscodex.com/articles/features/e3-2021-pc/) that used to embed YouTube videos:
![](../ublock.jpg "uBlock Origin tracks outbound traffic.")

View File

@ -10,15 +10,14 @@
<link rel="pingback" href="https://jam.brainbaking.com/pingback" />
<!-- meta data tags, open graph -->
<meta name="twitter:title" content="{{ .Title }}" property="og:title">
{{ $isHomePage := eq .Title .Site.Title }}
{{ if .Params.subtitle }}
<meta name="description" content="{{.Title}}. {{ .Params.subtitle }}. {{ .Summary | safeHTML }}">
<meta name="twitter:title" content="{{ .Title }} - {{ .Params.subtitle }}" property="og:title">
<meta name="twitter:description" content="{{ .Summary | safeHTML }}" property="og:description">
<meta name="description" content="{{ .Params.subtitle }}. {{ .Summary | safeHTML }}">
<meta name="twitter:description" content="{{ .Params.subtitle }}" property="og:description">
{{ else }}
<meta name="description" content="{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}">
<meta content="{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}" property="og:title">
<meta content="{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}" property="og:description">
<meta name="description" content="{{ .Summary | safeHTML }}">
<meta name="twitter:description" content="{{ .Summary | safeHTML }}" property="og:description">
{{ end }}{{ if .Keywords }}
<meta content="{{ delimit .Keywords ", " }}" name="keywords">
{{ else if .Params.tags }}