about summary refs log tree commit diff stats
path: root/src/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.go')
-rw-r--r--src/config.go38
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
-}