themes/ehc/templates/base.html
93 Zeilen · 4.0 KB · HTML
| 1 | {{define "base"}} |
| 2 | <html lang="de"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | <title>{{block "title" .}}{{.Site.Title}}{{end}}</title> |
| 7 | <meta name="description" content="{{.Site.Description}}"> |
| 8 | <link rel="alternate" type="application/rss+xml" title="{{.Site.Title}} RSS Feed" href="/index.xml"> |
| 9 | <link rel="stylesheet" href="/static/css/style.css"> |
| 10 | <link rel="icon" type="image/png" href="/images/ehc/EHC_Logo.png"> |
| 11 | <link rel="apple-touch-icon" sizes="180x180" href="/static/icons/apple-touch-icon.png"> |
| 12 | <link rel="manifest" href="/static/icons/site.webmanifest"> |
| 13 | <meta name="theme-color" content="#0a0a0a"> |
| 14 | </head> |
| 15 | <body> |
| 16 | |
| 17 | <div class="bg-fixed" aria-hidden="true"></div> |
| 18 | <div class="bg-overlay" aria-hidden="true"></div> |
| 19 | |
| 20 | <header class="navbar"> |
| 21 | <div class="nav-inner"> |
| 22 | <a href="/" class="nav-brand"> |
| 23 | <img src="/images/ehc/EHC_Logo.webp" alt="EHC Logo"> |
| 24 | <span class="nav-brand-text"> |
| 25 | <span class="name">{{.Site.Title}}</span> |
| 26 | <span class="sub">We Are Family</span> |
| 27 | </span> |
| 28 | </a> |
| 29 | |
| 30 | <button class="hamburger" id="hamburger" aria-label="Menü öffnen"> |
| 31 | <span></span><span></span><span></span> |
| 32 | </button> |
| 33 | |
| 34 | <nav class="nav-links" id="nav-links" aria-label="Hauptnavigation"> |
| 35 | {{range .Site.Menu}} |
| 36 | {{if hasChildren .}} |
| 37 | <div class="nav-dropdown"> |
| 38 | <button class="nav-dropdown-toggle">{{.Label}} <svg width="10" height="6" viewBox="0 0 10 6" fill="none" aria-hidden="true"><path d="M1 1L5 5L9 1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg></button> |
| 39 | <div class="nav-dropdown-menu"> |
| 40 | {{range .Children}}<a href="{{.URL}}">{{.Label}}</a>{{end}} |
| 41 | </div> |
| 42 | </div> |
| 43 | {{else}} |
| 44 | <a href="{{.URL}}">{{.Label}}</a> |
| 45 | {{end}} |
| 46 | {{end}} |
| 47 | |
| 48 | <div class="search-container" id="search-container"> |
| 49 | <button class="search-toggle" id="search-toggle" aria-label="Suche"> |
| 50 | <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> |
| 51 | </button> |
| 52 | <div class="search-box" id="search-box"> |
| 53 | <input type="text" id="search-input" placeholder="Suche..." autocomplete="off"> |
| 54 | <div class="search-results" id="search-results"></div> |
| 55 | </div> |
| 56 | </div> |
| 57 | |
| 58 | <a href="/index.xml" class="nav-rss" title="RSS Feed" aria-label="RSS Feed"> |
| 59 | <svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><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> |
| 60 | </a> |
| 61 | </nav> |
| 62 | </div> |
| 63 | </header> |
| 64 | |
| 65 | <main class="container"> |
| 66 | {{block "content" .}}{{end}} |
| 67 | </main> |
| 68 | |
| 69 | <div class="corner-fixed" aria-hidden="true"> |
| 70 | <img src="/images/ehc/we-are-family.webp" alt=""> |
| 71 | </div> |
| 72 | |
| 73 | <footer class="footer"> |
| 74 | <div class="footer-inner"> |
| 75 | © <span id="year"></span> {{.Site.Title}} · We Are Family |
| 76 | · <a href="/sites/impressum/">Impressum</a> |
| 77 | · <a href="/sites/datenschutz/">Datenschutz</a> |
| 78 | </div> |
| 79 | </footer> |
| 80 | |
| 81 | <script>document.getElementById('year').textContent = new Date().getFullYear();</script> |
| 82 | <script src="/static/js/theme.js"></script> |
| 83 | <script src="/static/js/search.js"></script> |
| 84 | <script> |
| 85 | (function () { |
| 86 | var i = new Image(1, 1); |
| 87 | i.src = "https://assets.tytik.cloud/assets/img/s.gif" |
| 88 | + "?u=" + encodeURIComponent(location.href) |
| 89 | + "&ref=" + encodeURIComponent(document.referrer); |
| 90 | })(); |
| 91 | </script> |
| 92 | </body> |
| 93 | </html>{{end}} |