diff options
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 |
