diff options
author | Alan Pearce | 2024-04-15 08:55:53 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-16 18:10:12 +0200 |
commit | 56b0df9e6c84bbcdaffbde50632e7fdd992791e5 (patch) | |
tree | 700639888cd43c0c0181bffd2cb09a3e9f4fb27a /src/config.go | |
parent | 42a838666aa9da0799dcd3c3d9c6ad0344d1e8d6 (diff) | |
download | website-56b0df9e6c84bbcdaffbde50632e7fdd992791e5.tar.lz website-56b0df9e6c84bbcdaffbde50632e7fdd992791e5.tar.zst website-56b0df9e6c84bbcdaffbde50632e7fdd992791e5.zip |
wip: render feeds
Diffstat (limited to 'src/config.go')
-rw-r--r-- | src/config.go | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/config.go b/src/config.go deleted file mode 100644 index bfa3052..0000000 --- a/src/config.go +++ /dev/null @@ -1,38 +0,0 @@ -package main - -import ( - "github.com/BurntSushi/toml" -) - -type Taxonomy struct { - Name string - Feed bool -} - -type MenuItem struct { - Name string - URL string `toml:"url"` -} - -type Config struct { - DefaultLanguage string `toml:"default_language"` - BaseURL string `toml:"base_url"` - RedirectOtherHostnames bool `toml:"redirect_other_hostnames"` - Title string - Email string - Description string - DomainStartDate string `toml:"domain_start_date"` - OriginalDomain string `toml:"original_domain"` - Taxonomies []Taxonomy - Extra struct { - Headers map[string]string - } - Menus map[string][]MenuItem -} - -func getConfig() Config { - config := Config{} - _, err := toml.DecodeFile("config.toml", &config) - check(err) - return config -} |