summaryrefslogtreecommitdiffstats
path: root/templates/admin/settings.html
diff options
context:
space:
mode:
authorivar <i@oiee.no>2026-04-07 00:23:24 +0200
committerivar <i@oiee.no>2026-04-07 00:23:24 +0200
commit85920b8c7a2696115d1f77c046f48f6f00d639f1 (patch)
tree14ed2043796eadd6ed5b0a95c55e38e48713d638 /templates/admin/settings.html
downloadiblog-85920b8c7a2696115d1f77c046f48f6f00d639f1.tar.xz
iblog-85920b8c7a2696115d1f77c046f48f6f00d639f1.zip
Init
Diffstat (limited to 'templates/admin/settings.html')
-rw-r--r--templates/admin/settings.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/admin/settings.html b/templates/admin/settings.html
new file mode 100644
index 0000000..fc42ee2
--- /dev/null
+++ b/templates/admin/settings.html
@@ -0,0 +1,20 @@
+{{define "settings-content"}}
+{{if .Success}}<p class="hint">Settings saved.</p>{{end}}
+{{if .Error}}<p style="color:#c0392b">{{.Error}}</p>{{end}}
+<form method="POST" action="/admin/settings" enctype="multipart/form-data">
+ <label for="site_title">Site title</label>
+ <input type="text" id="site_title" name="site_title" value="{{.SiteTitle}}" placeholder="My blog">
+
+ <label for="site_description">Site description</label>
+ <input type="text" id="site_description" name="site_description" value="{{.SiteDescription}}" placeholder="A short description">
+
+ <label for="logo">Logo image</label>
+ <input type="file" id="logo" name="logo" accept="image/png,image/jpeg,image/webp">
+ <p class="hint">Leave blank to keep the current logo.</p>
+
+ <div class="form-actions">
+ <button type="submit" class="btn btn-primary">Save</button>
+ <a href="/admin/" class="btn btn-secondary">Cancel</a>
+ </div>
+</form>
+{{end}}