2024-02-29 11:15:15 +00:00
|
|
|
{{ define "base" }}
|
|
|
|
{{ $title := "" }}
|
|
|
|
{{ $path := "" }}
|
|
|
|
{{ if ne nil .NavbarActive }}
|
|
|
|
{{ $title = .NavbarActive.Title }}
|
|
|
|
{{ $path = .NavbarActive.Path }}
|
|
|
|
{{ end }}
|
|
|
|
|
2024-02-12 10:22:14 +00:00
|
|
|
|
2024-02-29 11:15:15 +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" />
|
|
|
|
<title>Zdravko - {{ $title }}</title>
|
|
|
|
<link rel="stylesheet" href="/static/css/tailwind.css" />
|
|
|
|
</head>
|
2024-05-14 19:38:45 +00:00
|
|
|
<body class="bg-gray-100 flex flex-col">
|
2024-02-29 11:15:15 +00:00
|
|
|
<nav class="navbar">
|
|
|
|
{{ range .Navbar }}
|
|
|
|
<a
|
|
|
|
{{ $active := eq .Path $path }}
|
|
|
|
{{ if $active }}aria-current="true"{{ end }}
|
|
|
|
href="{{ .Path }}"
|
|
|
|
class="{{ if $active }}active{{ end }}"
|
|
|
|
>
|
|
|
|
{{ .Title }}
|
|
|
|
</a>
|
|
|
|
{{ end }}
|
|
|
|
</nav>
|
|
|
|
{{ template "main" . }}
|
|
|
|
<div class="container mx-auto">
|
|
|
|
<footer class="text-center text-gray-500 text-xs mt-8 mb-4">
|
2024-02-29 14:12:20 +00:00
|
|
|
© {{ Now.UTC.Year }} Zdravko -
|
2024-02-29 11:15:15 +00:00
|
|
|
<a
|
|
|
|
class="hover:underline"
|
|
|
|
href="https://github.com/mentos1386/zdravko"
|
|
|
|
>Open Source</a
|
|
|
|
>
|
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
<script src="/static/js/htmx.min.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
{{ end }}
|