2024-02-10 11:59:58 +00:00
|
|
|
{{define "base"}}
|
2024-02-12 10:22:14 +00:00
|
|
|
{{ $title := "" }}
|
|
|
|
{{ $path := "" }}
|
|
|
|
{{ if ne nil .Page }}
|
|
|
|
{{ $title = .Page.Title }}
|
|
|
|
{{ $path = .Page.Path }}
|
|
|
|
{{ 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-10 17:35:16 +00:00
|
|
|
<nav class="justify-center flex space-x-2 mt-10">
|
2024-02-12 10:22:14 +00:00
|
|
|
{{range .Pages}}
|
|
|
|
<a
|
|
|
|
{{$active := eq .Path $path }}
|
|
|
|
{{if $active}}aria-current="true"{{end}}
|
|
|
|
href="{{.Path}}"
|
|
|
|
class="btn {{if $active}}btn-active{{end}}">
|
|
|
|
{{.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">
|
|
|
|
<footer class="text-center text-gray-500 text-xs mt-8">
|
|
|
|
© 2024 Zdravko - <a href="https://github.com/mentos1386/zdravko">Source</a>
|
|
|
|
</footer>
|
2024-02-10 11:59:58 +00:00
|
|
|
<script src="/static/js/htmx.min.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
{{end}}
|