增加说说 影集支持模块

This commit is contained in:
JiXieShi
2024-05-03 18:34:32 +08:00
parent f4597906c0
commit 31c541e1c2
10 changed files with 412 additions and 1 deletions

View File

@@ -12,6 +12,8 @@ type TemplatePointer struct {
}
type HtmlTemplate struct {
Talk TemplatePointer
Album TemplatePointer
Article TemplatePointer
Categories TemplatePointer
Dashboard TemplatePointer
@@ -48,7 +50,7 @@ func initHtmlTemplate(viewDir string) (HtmlTemplate, error) {
var htmlTemplate HtmlTemplate
tp, err := readHtmlTemplate(
[]string{"index", "extraNav", "dashboard", "categories", "article"},
[]string{"index", "extraNav", "dashboard", "categories", "article", "album", "talk"},
viewDir)
if err != nil {
return htmlTemplate, err
@@ -59,6 +61,8 @@ func initHtmlTemplate(viewDir string) (HtmlTemplate, error) {
htmlTemplate.Dashboard = tp[2]
htmlTemplate.Categories = tp[3]
htmlTemplate.Article = tp[4]
htmlTemplate.Album = tp[5]
htmlTemplate.Talk = tp[6]
return htmlTemplate, nil
}