Update site params to a nested map

This commit is contained in:
IMG-PRCSNG 2022-03-04 23:08:52 +00:00 committed by adnano
parent f7c98c1514
commit f6461cab35

12
site.go
View file

@ -13,12 +13,12 @@ import (
// Site represents a site. // Site represents a site.
type Site struct { type Site struct {
Title string `toml:"title"` Title string `toml:"title"`
Tasks []*Task `toml:"tasks"` Tasks []*Task `toml:"tasks"`
Params map[string]string `toml:"params"` Params map[string]interface{} `toml:"params"`
Permalinks map[string]string `toml:"permalinks"` Permalinks map[string]string `toml:"permalinks"`
Generated time.Time `toml:"-"` Generated time.Time `toml:"-"`
Root *Page `toml:"-"` Root *Page `toml:"-"`
permalinks map[string]*template.Template permalinks map[string]*template.Template
templates Templates templates Templates
} }