aboutsummaryrefslogtreecommitdiff
path: root/backend/data.go
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-10-03 19:15:58 +0200
committerWilliam Hergès <william@herges.fr>2025-10-03 19:15:58 +0200
commitcb19ff62a7ddbe130f2b3723ba16599a66e3df67 (patch)
treeceab92c4d695e19e128ff47f15b8d594ad8b6e8f /backend/data.go
parent24ec3f328981a7dad54d3aae48e8feae932aed87 (diff)
feat(frontend): update quote after htmx reload
Diffstat (limited to 'backend/data.go')
-rw-r--r--backend/data.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/data.go b/backend/data.go
index fe5aa96..741a5c4 100644
--- a/backend/data.go
+++ b/backend/data.go
@@ -87,6 +87,7 @@ func (d *data) handleGeneric(w http.ResponseWriter, r *http.Request, name string
if r.Context().Value(isUpdateKey).(bool) {
exec = "body"
w.Header().Set("Updated-Title", d.Title())
+ w.Header().Set("Updated-Quote", d.Quote)
}
if custom == nil {
err = t.ExecuteTemplate(w, exec, d)