diff options
| author | ivar <i@oiee.no> | 2026-04-07 00:23:24 +0200 |
|---|---|---|
| committer | ivar <i@oiee.no> | 2026-04-07 00:23:24 +0200 |
| commit | 85920b8c7a2696115d1f77c046f48f6f00d639f1 (patch) | |
| tree | 14ed2043796eadd6ed5b0a95c55e38e48713d638 /templates/admin/index.html | |
| download | iblog-85920b8c7a2696115d1f77c046f48f6f00d639f1.tar.xz iblog-85920b8c7a2696115d1f77c046f48f6f00d639f1.zip | |
Init
Diffstat (limited to 'templates/admin/index.html')
| -rw-r--r-- | templates/admin/index.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/templates/admin/index.html b/templates/admin/index.html new file mode 100644 index 0000000..decc138 --- /dev/null +++ b/templates/admin/index.html @@ -0,0 +1,36 @@ +{{define "base"}} +<!DOCTYPE html> +<html lang="en"> + +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Admin — {{.Title}}</title> + <link rel="stylesheet" href="/assets/styles/admin.css"> + <script type="importmap"> + { + "imports": { + "editorjs-bundle": "/assets/admin/lib/dist/build.js", + "shared": "/assets/lib/shared.js" + } + } + </script> +</head> + +<body> + <nav> + <a href="/">forside</a> + <a href="/admin">admin</a> + <a href="/admin/new">nytt innlegg</a> + <a href="/admin/settings">innstillinger</a> + </nav> + <main> + {{if eq .ContentTemplate "list-content"}}{{template "list-content" .}}{{end}} + {{if eq .ContentTemplate "form-content"}}{{template "form-content" .}}{{end}} + {{if eq .ContentTemplate "error-content"}}{{template "error-content" .}}{{end}} + {{if eq .ContentTemplate "settings-content"}}{{template "settings-content" .}}{{end}} + </main> +</body> + +</html> +{{end}}
\ No newline at end of file |
