fix templating

This commit is contained in:
nahakubuilde
2025-08-25 17:26:27 +01:00
parent 3e47f77ae9
commit 9583224c65
12 changed files with 228 additions and 100 deletions

View File

@@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{block "title" .}}{{.app_name}}{{end}}</title>
<title>{{.app_name}}</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
@@ -287,7 +287,21 @@
<!-- Content Area -->
<div class="flex-1 overflow-y-auto">
{{block "content" .}}{{end}}
{{if eq .Page "folder"}}
{{template "folder_content" .}}
{{else if eq .Page "note"}}
{{template "note_content" .}}
{{else if eq .Page "view_text"}}
{{template "view_text_content" .}}
{{else if eq .Page "create"}}
{{template "create_content" .}}
{{else if eq .Page "edit"}}
{{template "edit_content" .}}
{{else if eq .Page "settings"}}
{{template "settings_content" .}}
{{else if eq .Page "error"}}
{{template "error_content" .}}
{{end}}
</div>
</div>
</div>
@@ -371,7 +385,21 @@
});
</script>
{{block "scripts" .}}{{end}}
{{if eq .Page "folder"}}
{{template "folder_scripts" .}}
{{else if eq .Page "note"}}
{{template "note_scripts" .}}
{{else if eq .Page "view_text"}}
{{template "view_text_scripts" .}}
{{else if eq .Page "create"}}
{{template "create_scripts" .}}
{{else if eq .Page "edit"}}
{{template "edit_scripts" .}}
{{else if eq .Page "settings"}}
{{template "settings_scripts" .}}
{{else if eq .Page "error"}}
{{template "error_scripts" .}}
{{end}}
</body>
</html>
{{end}}