diff options
| author | Mikkel Thestrup <mikkel_thestrup@mithe.dk> | 2025-12-06 19:55:17 +0100 |
|---|---|---|
| committer | Mikkel Thestrup <mikkel_thestrup@mithe.dk> | 2025-12-06 19:55:17 +0100 |
| commit | 0015442a40e6fb9c21eff0d0df29d5cd7cf856bc (patch) | |
| tree | 64195fa9aa6297974fb9890818e285d78479e9d7 /views/layout.html | |
| parent | 3d9d7590e555cd2c37e18396e72f725d3d71fa05 (diff) | |
| download | web-portfolio-0015442a40e6fb9c21eff0d0df29d5cd7cf856bc.tar.gz web-portfolio-0015442a40e6fb9c21eff0d0df29d5cd7cf856bc.zip | |
template files
Diffstat (limited to 'views/layout.html')
| -rw-r--r-- | views/layout.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/views/layout.html b/views/layout.html new file mode 100644 index 0000000..1b08d1d --- /dev/null +++ b/views/layout.html @@ -0,0 +1,34 @@ +{{ define "layout.html" }} +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>Mikkel Thestrup - Web Portfolio</title> + <link href="/css/style.css" rel="stylesheet"> + <script src="/js/htmx.min.js"></script> + </head> + <div id="header"> + <a id="headerLink" href="//mithe.dk/">Mikkel Thestrup</a> + <span id="headerSubtitle">Web Portfolio</span> + </div> + <body> + <div id="menu"> + {{ range .Pages }} + {{ $page := . }} + <a href="/{{ $page }}" + hx-get="/api/{{ $page }}" + hx-target="#page" + hx-swap="innerHTML" + hx-push-url="/{{ $page }}"> + {{ $page }}</a> + {{ end }} + <span class="right"> + <a href="https://git.mithe.dk/"> + source</a> + </span> + </div> + {{ template "page.html" . }} + </body> +</html> +{{ end }} |