themes/default/templates/base.html
75 Zeilen · 4.0 KB · HTML
| 1 | {{define "base"}} |
| 2 | |
| 3 | <html lang="de" data-theme="dark"> |
| 4 | <head> |
| 5 | <meta charset="UTF-8"> |
| 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 7 | <title>{{block "title" .}}{{.Site.Title}}{{end}}</title> |
| 8 | <meta name="description" content="{{.Site.Description}}"> |
| 9 | <link rel="alternate" type="application/rss+xml" title="{{.Site.Title}} RSS Feed" href="/index.xml"> |
| 10 | <link rel="preconnect" href="https://fonts.googleapis.com"> |
| 11 | <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
| 12 | <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet"> |
| 13 | <link rel="stylesheet" href="/static/css/style.css"> |
| 14 | <link rel="icon" type="image/png" sizes="32x32" href="/static/icons/favicon-32.png"> |
| 15 | <link rel="icon" type="image/png" sizes="16x16" href="/static/icons/favicon-16.png"> |
| 16 | <link rel="icon" href="/static/icons/favicon.ico"> |
| 17 | |
| 18 | <link rel="apple-touch-icon" sizes="180x180" href="/static/icons/apple-touch-icon.png"> |
| 19 | |
| 20 | <link rel="manifest" href="/static/icons/site.webmanifest"> |
| 21 | <meta name="theme-color" content="#0b1020"> |
| 22 | </head> |
| 23 | <body> |
| 24 | <nav class="navbar"> |
| 25 | <div class="nav-inner"> |
| 26 | <a href="/" class="nav-brand">{{.Site.Title}}</a> |
| 27 | <button class="hamburger" id="hamburger" aria-label="Menü öffnen"> |
| 28 | <span></span><span></span><span></span> |
| 29 | </button> |
| 30 | <div class="nav-links" id="nav-links"> |
| 31 | {{range .Site.Menu}} |
| 32 | {{if hasChildren .}} |
| 33 | <div class="nav-dropdown"> |
| 34 | <button class="nav-dropdown-toggle">{{.Label}} <svg width="10" height="6" viewBox="0 0 10 6" fill="none"><path d="M1 1L5 5L9 1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg></button> |
| 35 | <div class="nav-dropdown-menu"> |
| 36 | {{range .Children}} |
| 37 | <a href="{{.URL}}">{{.Label}}</a> |
| 38 | {{end}} |
| 39 | </div> |
| 40 | </div> |
| 41 | {{else}} |
| 42 | <a href="{{.URL}}">{{.Label}}</a> |
| 43 | {{end}} |
| 44 | {{end}} |
| 45 | <div class="search-container" id="search-container"> |
| 46 | <button class="search-toggle" id="search-toggle" aria-label="Suche"> |
| 47 | <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg> |
| 48 | </button> |
| 49 | <div class="search-box" id="search-box"> |
| 50 | <input type="text" id="search-input" placeholder="Suche..." autocomplete="off"> |
| 51 | <div class="search-results" id="search-results"></div> |
| 52 | </div> |
| 53 | </div> |
| 54 | <a href="/index.xml" class="nav-rss" title="RSS Feed"> |
| 55 | <svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><circle cx="6.18" cy="17.82" r="2.18"/><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17 7.07 7.07h2.83c0-5.47-4.43-9.9-9.9-9.9z"/></svg> |
| 56 | </a> |
| 57 | <button id="theme-toggle" aria-label="Theme wechseln"></button> |
| 58 | </div> |
| 59 | </div> |
| 60 | </nav> |
| 61 | <main class="container"> |
| 62 | {{block "content" .}}{{end}} |
| 63 | </main> |
| 64 | <footer class="footer"> |
| 65 | <div class="footer-inner"> |
| 66 | <p>© 2001-2026 {{.Site.Title}} - {{.Site.Author}} · Powered by <a class="read-more" href="/sites/projects/quilldrop">QuillDrop</a><br> |
| 67 | <a class="read-more" href="/sites/datenschutz/">Datenschutz</a> · <a class="read-more" href="/sites/impressum/">Impressum</a> |
| 68 | </p> |
| 69 | </div> |
| 70 | </footer> |
| 71 | <script src="/static/js/theme.js"></script> |
| 72 | <script src="/static/js/search.js"></script> |
| 73 | </body> |
| 74 | </html> |
| 75 | {{end}} |