move lightbox into extend-footer.html (from extend-head.html)

This commit is contained in:
Dominic Reich 2025-02-15 14:23:12 +01:00
parent a42ad92a50
commit 5f93cb018f
Signed by: dominic
GPG key ID: 0B5787DB23049C45
2 changed files with 74 additions and 53 deletions

View file

@ -1,16 +1,75 @@
<div class="flex items-center justify-between">
<div>
<p class="text-xs text-neutral-500 dark:text-neutral-400">
Served> with <a
class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href="https://archlinux.org/"
target="_blank" rel="noopener noreferrer">Arch Linux</a> and <a
class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href="https://httpd.apache.org/"
target="_blank" rel="noopener noreferrer">Apache httpd</a>
<a class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href="/feed.xml"
target="_blank" rel="noopener">Atom feed</a>
<a class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href="/feed.json"
target="_blank" rel="noopener">Json feed</a>
</p>
</div>
<div>
<p class="text-xs text-neutral-500 dark:text-neutral-400">
Served> with
<a
class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
href="https://archlinux.org/"
target="_blank"
rel="noopener noreferrer"
>Arch Linux</a
>
and
<a
class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
href="https://httpd.apache.org/"
target="_blank"
rel="noopener noreferrer"
>Apache httpd</a
>
<a
class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
href="/feed.xml"
target="_blank"
rel="noopener"
>Atom feed</a
>
<a
class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
href="/feed.json"
target="_blank"
rel="noopener"
>Json feed</a
>
</p>
</div>
</div>
{{ 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 }}

View file

@ -1,45 +1,7 @@
{{- if eq .Site.BaseURL "https://oe7drt.com/" }}
{{ partial "plausible_head.html" . }}
{{- end }}
{{- if eq .Site.BaseURL "https://oe7drt.com/" }} {{ partial
"plausible_head.html" . }} {{- end }}
<meta name="fediverse:creator" content="@oe7drt@mastodon.radio" />
{{ 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
http-equiv="onion-location"
content="http://5uxkejb6la7olhncaotybxrscmdlbxwy64ucuyrum4tsgfuoxbyav2qd.onion"