mirror of
https://github.com/mentos1386/zdravko.git
synced 2024-11-26 17:27:59 +00:00
40 lines
1.2 KiB
Cheetah
40 lines
1.2 KiB
Cheetah
{{define "base"}}
|
|
{{ $title := "" }}
|
|
{{ $path := "" }}
|
|
{{ if ne nil .Page }}
|
|
{{ $title = .Page.Title }}
|
|
{{ $path = .Page.Path }}
|
|
{{ end }}
|
|
|
|
<!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>
|
|
<body class="bg-gray-100">
|
|
<nav class="justify-center flex space-x-2 mt-10">
|
|
{{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}}
|
|
</nav>
|
|
<div class="container max-w-screen-md flex flex-col mt-20">
|
|
{{template "main" .}}
|
|
</div>
|
|
<div class="container mx-auto">
|
|
<footer class="text-center text-gray-500 text-xs mt-8">
|
|
© 2024 Zdravko - <a class="hover:underline" href="https://github.com/mentos1386/zdravko">Source</a>
|
|
</footer>
|
|
<script src="/static/js/htmx.min.js"></script>
|
|
</body>
|
|
</html>
|
|
{{end}}
|