fix: nav menu, language dropdown, sidebar TOC + recent articles
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -13,42 +13,46 @@
|
||||
{{/* Main stylesheet with Newsreader + custom colors */}}
|
||||
<link rel="stylesheet" href="{{ "css/main.css" | relURL }}">
|
||||
</head>
|
||||
<body class="bg-ifk-bg text-ifk-text">
|
||||
<header class="border-b bg-white sticky top-0 z-40">
|
||||
<nav class="max-w-4xl mx-auto px-4 py-4 flex justify-between items-center">
|
||||
<a href="{{ "/" | relLangURL }}" class="font-newsreader text-xl font-semibold text-ifk-text hover:text-ifk-accent">
|
||||
<body style="background-color:var(--ifk-bg);color:var(--ifk-text)">
|
||||
<header style="border-bottom:1px solid #e5e7eb;background:white;position:sticky;top:0;z-index:40">
|
||||
<nav style="max-width:64rem;margin:0 auto;padding:1rem;display:flex;justify-content:space-between;align-items:center">
|
||||
<a href="{{ "/" | relLangURL }}" style="font-family:var(--ifk-font);font-size:1.35rem;font-weight:600;color:var(--ifk-text);text-decoration:none">
|
||||
{{ .Site.Title }}
|
||||
</a>
|
||||
{{ partial "language-switcher.html" . }}
|
||||
<div style="display:flex;align-items:center;gap:1.5rem;font-family:system-ui,-apple-system,sans-serif;font-size:0.95rem">
|
||||
{{ range .Site.Menus.main }}
|
||||
{{ if ne .Identifier "locale" }}
|
||||
<a href="{{ .URL | relLangURL }}" style="color:#4b5563;text-decoration:none">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ partial "language-switcher.html" . }}
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main class="flex-1">
|
||||
<main style="flex:1">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
|
||||
<footer class="border-t bg-white mt-20">
|
||||
<div class="max-w-4xl mx-auto px-4 py-12">
|
||||
<div class="grid grid-cols-2 md:grid-cols-3 gap-8 mb-12">
|
||||
<footer style="border-top:1px solid #e5e7eb;background:white;margin-top:5rem">
|
||||
<div style="max-width:64rem;margin:0 auto;padding:3rem 1rem">
|
||||
<div style="display:flex;gap:2rem;flex-wrap:wrap;margin-bottom:2rem">
|
||||
{{ range .Site.Menus.footer }}
|
||||
<a href="{{ .URL | relLangURL }}" class="text-gray-600 hover:text-ifk-accent">
|
||||
<a href="{{ .URL | relLangURL }}" style="color:#6b7280;text-decoration:none;font-family:system-ui,sans-serif;font-size:0.875rem">
|
||||
{{ .Name }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="border-t pt-8 text-center text-sm text-gray-600">
|
||||
<p class="mb-2">
|
||||
© {{ now.Year }} {{ .Site.Title }}. A publication by <a href="https://www.agiliton.eu" class="text-ifk-accent hover:text-ifk-accent-hover">Agiliton</a>.
|
||||
<div style="border-top:1px solid #e5e7eb;padding-top:2rem;text-align:center;font-size:0.85rem;color:#6b7280;font-family:system-ui,sans-serif">
|
||||
<p>
|
||||
© {{ now.Year }} {{ .Site.Title }}. A publication by <a href="https://www.agiliton.eu" style="color:var(--ifk-accent);text-decoration:none">Agiliton</a>.
|
||||
</p>
|
||||
{{ partial "extend-footer.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
{{/* Analytics */}}
|
||||
{{ partial "rybbit.html" . }}
|
||||
|
||||
{{/* SEO */}}
|
||||
{{ partial "structured-data.html" . }}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user