Refactor calendar widget changes
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user