collections as one navigation level

This commit is contained in:
Sebastian Frank
2019-03-10 16:02:53 +01:00
parent e3dfbcb591
commit 38820e6baf
6 changed files with 157 additions and 47 deletions

View File

@@ -8,10 +8,16 @@ import (
// CollectionConfig describes a collection
type CollectionConfig struct {
Name *string `yaml:"Name"`
URL *string `yaml:"URL"`
GoToTemplate *string `yaml:"GoToTemplate"`
RegisterNav *bool `yaml:"RegisterNav"`
Name *string `yaml:"Name"`
EntriesJSON *string `yaml:"EntriesJSON"`
NavTemplate *struct {
GoTo string `yaml:"GoTo"`
Navname string `yaml:"Navname"`
Body string `yaml:"Body"`
DataKey string `yaml:"DataKey"`
Hidden bool `yaml:"Hidden"`
Template string `yaml:"Template"`
} `yaml:"NavTemplate"`
}
// ThisPathConfig is struct for This in paths yaml