oe7drt-website/layouts/partials/extend-head.html

56 lines
2.1 KiB
HTML
Raw Normal View History

{{ partial "plausible_head.html" . }}
2024-12-07 10:50:57 +01:00
<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 " />