From 56b0df9e6c84bbcdaffbde50632e7fdd992791e5 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 15 Apr 2024 08:55:53 +0200 Subject: wip: render feeds --- src/config.go | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 src/config.go (limited to 'src/config.go') 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 -} -- cgit 1.4.1