2024-02-10 11:59:58 +00:00
|
|
|
{{define "base"}}
|
2024-02-12 10:22:14 +00:00
|
|
|
{{ $title := "" }}
|
|
|
|
{{ $path := "" }}
|
2024-02-15 22:47:56 +00:00
|
|
|
{{ if ne nil .NavbarActive }}
|
|
|
|
{{ $title = .NavbarActive.Title }}
|
|
|
|
{{ $path = .NavbarActive.Path }}
|
2024-02-12 10:22:14 +00:00
|
|
|
{{ end }}
|
|
|
|
|
2024-02-10 11:59:58 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
2024-02-12 10:22:14 +00:00
|
|
|
<title>Zdravko - {{$title}}</title>
|
2024-02-10 11:59:58 +00:00
|
|
|
<link rel="stylesheet" href="/static/css/tailwind.css">
|
|
|
|
</head>
|
|
|
|
<body class="bg-gray-100">
|
2024-02-13 21:39:34 +00:00
|
|
|
<nav class="navbar">
|
2024-02-15 22:47:56 +00:00
|
|
|
{{range .Navbar}}
|
2024-02-12 10:22:14 +00:00
|
|
|
<a
|
|
|
|
{{$active := eq .Path $path }}
|
|
|
|
{{if $active}}aria-current="true"{{end}}
|
|
|
|
href="{{.Path}}"
|
2024-02-13 21:39:34 +00:00
|
|
|
class="{{if $active}}active{{end}}">
|
2024-02-12 10:22:14 +00:00
|
|
|
{{.Title}}
|
|
|
|
</a>
|
|
|
|
{{end}}
|
2024-02-10 17:35:16 +00:00
|
|
|
</nav>
|
|
|
|
<div class="container max-w-screen-md flex flex-col mt-20">
|
|
|
|
{{template "main" .}}
|
|
|
|
</div>
|
2024-02-10 17:05:11 +00:00
|
|
|
<div class="container mx-auto">
|
2024-02-15 22:47:56 +00:00
|
|
|
<footer class="text-center text-gray-500 text-xs mt-8 mb-4">
|
|
|
|
© 2024 Zdravko - <a class="hover:underline" href="https://github.com/mentos1386/zdravko">Open Source</a>
|
2024-02-10 17:05:11 +00:00
|
|
|
</footer>
|
2024-02-10 11:59:58 +00:00
|
|
|
<script src="/static/js/htmx.min.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
{{end}}
|