Statische Seiten

This commit is contained in:
Simon Martens
2025-02-24 16:20:08 +01:00
parent d806799b83
commit 6b5fa3dbc3
27 changed files with 617 additions and 85 deletions

View File

@@ -1 +1,22 @@
<div class="mt-12 pt-3 border-t">Datenschutz, Impressum.</div>
{{- $date := Today -}}
<footer class="container-normal pb-1.5 text-base text-gray-800">
<div class="mt-12 pt-3 flex flex-row justify-between">
<div>
<i class="ri-creative-commons-line"></i>
<i class="ri-creative-commons-by-line"></i>
<a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>
<span>&middot;</span>
<span>{{- (GetMonth $date).Name }} {{ $date.Year }}</span>
</div>
<div>
<span>{{- .site.title }} &ndash; ein Projekt der</span>
<a href="https://theodor-springmann-stiftung.de">Theodor Springmann Stiftung</a>
<span>&middot;</span>
<a href="/datenschutz/">Impressum &amp; Datenschutz</a>
<span>&middot;</span>
<i class="ri-code-line"></i>
<a href="https://github.com/Theodor-Springmann-Stiftung/musenalm">Code</a>
</div>
</div>
</footer>

View File

@@ -39,7 +39,7 @@
<button
{{ if and $model.page (HasPrefix $model.page.Path "/edition") -}}
aria-current="true"
{{- end -}}
{{- end }}
data-url="/edition/"
class="text-slate-600 hover:text-slate-900 hover:cursor-pointer hover:bg-slate-100
!pr-2.5"

View File

@@ -29,29 +29,6 @@
<link href="/assets/css/remixicon.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="/assets/css/fonts.css" />
<link rel="stylesheet" type="text/css" href="/assets/style.css" />
{{ if .isDev -}}
{{/* INFO: this runs airs injected script on page load, in dev mode */}}
{{/* INFO: Make sure airs proxy runs on port 8081 */}}
<script type="module">
function hookupAIR() {
const port = window.location.port;
if (!port || port !== "8081") {
return;
}
document.body.addEventListener("htmx:afterSwap", (event) => {
if (event.detail.target === document.body) {
const scriptEl = document.querySelector("body > script:last-of-type");
if (scriptEl && scriptEl.textContent.trim()) {
new Function(scriptEl.textContent)();
}
}
});
}
hookupAIR();
</script>
{{- end }}
</head>
<body class="w-full text-lg" hx-ext="response-targets" hx-boost="true">
@@ -68,10 +45,9 @@
{{ end }}
</main>
<footer class="container-normal">
{{ block "_footer" . }}
{{ end }}
</footer>
{{ block "_footer" . }}
{{ end }}
<scroll-button></scroll-button>
</div>