1
0
Fork 0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-05-21 02:46:06 +02:00

Update site params to a nested map

This commit is contained in:
IMG-PRCSNG 2022-03-04 23:08:52 +00:00 committed by Adnan Maolood
parent de04e0e828
commit 3e1683ecfc

12
site.go
View File

@ -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
}