oe7drt-website/layouts/partials/extend-head.html
Dominic Reich 01706732f2
update about page (email obfuscation)
introducing two new javascript files that use browser JS interaction to
reveal the data

moved everything into /assets (from /static) so we also added defer,
devmode choise and integrity to the files, scrumbling their names with
sha256 checksums in extended header partial

also moved lightbox into extended header from _baseof layout
2024-12-26 19:00:04 +01:00

55 lines
2.1 KiB
HTML

{{ partial "plausible_head.html" . }}
<meta name="fediverse:creator" content="@oe7drt@mastodon.radio" />
{{ with resources.Get "js/text-interaction.js" }}
{{ if hugo.IsDevelopment }}
{{ with . | js.Build }}
<script defer type="text/javascript" src="{{ .RelPermalink }}" data-copy="Copy" data-copied="Copied"></script>
{{ end }}
{{ else }}
{{ $opts := (dict "minify" true "targetPath" "js/txt.js") }}
{{ with . | js.Build $opts | fingerprint }}
<script defer type="text/javascript" src="{{ .RelPermalink }}" data-copy="Copy" data-copied="Copied" integrity="{{ .Data.Integrity }}"></script>
{{ end }}
{{ end }}
{{ end }}
{{ with resources.Get "js/link-interaction.js" }}
{{ if hugo.IsDevelopment }}
{{ with . | js.Build }}
<script defer type="text/javascript" src="{{ .RelPermalink }}" data-copy="Copy" data-copied="Copied"></script>
{{ end }}
{{ else }}
{{ $opts := (dict "minify" true "targetPath" "js/lnk.js") }}
{{ with . | js.Build $opts | fingerprint }}
<script defer type="text/javascript" src="{{ .RelPermalink }}" data-copy="Copy" data-copied="Copied" integrity="{{ .Data.Integrity }}"></script>
{{ end }}
{{ end }}
{{ end }}
{{ with resources.Get "js/lightbox.js" }}
{{ if hugo.IsDevelopment }}
{{ with . | js.Build }}
<script defer type="text/javascript" src="{{ .RelPermalink }}" data-copy="Copy" data-copied="Copied"></script>
{{ end }}
{{ else }}
{{ $opts := (dict "minify" true "targetPath" "js/lightbox.js") }}
{{ with . | js.Build $opts | fingerprint }}
<script defer type="text/javascript" src="{{ .RelPermalink }}" data-copy="Copy" data-copied="Copied" integrity="{{ .Data.Integrity }}"></script>
{{ end }}
{{ end }}
{{ end }}
{{ with resources.Get "css/lightbox.css" }}
{{ if hugo.IsDevelopment }}
{{ with . }}
<link type="text/css" rel="stylesheet" media="screen,print" href="{{ .RelPermalink }}" />
{{ end }}
{{ else }}
{{ with . | fingerprint }}
<link type="text/css" rel="stylesheet" media="screen,print" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" />
{{ end }}
{{ end }}
{{ end }}
<meta name="lala " />