aboutsummaryrefslogtreecommitdiff
path: root/htmx/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'htmx/base.html')
-rw-r--r--htmx/base.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/htmx/base.html b/htmx/base.html
new file mode 100644
index 0000000..c02e2c6
--- /dev/null
+++ b/htmx/base.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+
+ <link id="maincss" rel="stylesheet" href="/static/pico.min.css" defer>
+ <title>{{block "title" .}}Pastebin{{end}}</title>
+
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="theme-color" media="(prefers-color-scheme: light)" content="white" />
+ <meta name="theme-color" media="(prefers-color-scheme: dark)" content="black" />
+
+</head>
+<body>
+<div class="container">
+<nav>
+ {{block "nav" . }}
+ <ul>
+ <li>
+ <a href="/">Home</a>
+ </li>
+ </ul>
+ <ul>
+ <li>
+ <a href="/login">Login</a> |
+ </li>
+ </ul>
+ {{end}}
+</nav>
+
+<div class="main">
+{{block "main" .}}
+{{end}}
+</div>
+
+</div>
+<script src="/static/htmx.min.js"></script>
+</body>
+