From 3e1683ecfc026e441353ee931573fdaaa09fc540 Mon Sep 17 00:00:00 2001 From: IMG-PRCSNG Date: Fri, 4 Mar 2022 23:08:52 +0000 Subject: [PATCH] Update site params to a nested map --- site.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/site.go b/site.go index c5d5d1d..bbb31dd 100644 --- a/site.go +++ b/site.go @@ -13,12 +13,12 @@ import ( // Site represents a site. type Site struct { - Title string `toml:"title"` - Tasks []*Task `toml:"tasks"` - Params map[string]string `toml:"params"` - Permalinks map[string]string `toml:"permalinks"` - Generated time.Time `toml:"-"` - Root *Page `toml:"-"` + Title string `toml:"title"` + Tasks []*Task `toml:"tasks"` + Params map[string]interface{} `toml:"params"` + Permalinks map[string]string `toml:"permalinks"` + Generated time.Time `toml:"-"` + Root *Page `toml:"-"` permalinks map[string]*template.Template templates Templates }