Refactor calendar widget changes

This commit is contained in:
2026-04-23 10:56:05 +02:00
parent 910be60ed5
commit 4751a99e8e
9 changed files with 51 additions and 122 deletions
+3 -3
View File
@@ -170,10 +170,10 @@ func (h *handler) serveDir(w http.ResponseWriter, r *http.Request, urlPath, fsPa
}
var specialContent template.HTML
var diaryWidget template.HTML
var sidebarWidget template.HTML
if special != nil {
specialContent = special.Content
diaryWidget = special.Widget
sidebarWidget = special.Widget
}
rawContent := string(rawMD)
@@ -196,7 +196,7 @@ func (h *handler) serveDir(w http.ResponseWriter, r *http.Request, urlPath, fsPa
Content: rendered,
Entries: entries,
SpecialContent: specialContent,
DiaryWidget: diaryWidget,
SidebarWidget: sidebarWidget,
}
w.Header().Set("Content-Type", "text/html; charset=utf-8")