feat: metadata draft

This commit is contained in:
2026-02-03 09:04:11 +01:00
parent 7238d02a13
commit d6617cec02
7 changed files with 58 additions and 45 deletions

View File

@ -45,6 +45,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// ViewState is built per-request, not shared
type ViewState struct {
Notes []*note.Note
Note *note.Note
RenderedNote template.HTML
SortBy string
SearchTerm string
@ -153,6 +154,7 @@ func (h *Handler) handleNotes(w http.ResponseWriter, r *http.Request) {
}
// Add to state
state.Note = note
state.RenderedNote = htmlContent
state.LastActive = hash