From 8b1d8bf26452f3ce8b38228a39755a6b8e18775a Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Thu, 15 Jul 2021 01:10:41 -0400 Subject: Start on the example website. Remove some chunks of code. Fix up author handling in the feeds. --- cmd/server/main.go | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'cmd/server/main.go') diff --git a/cmd/server/main.go b/cmd/server/main.go index 4b2c1ad..00aecbf 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -19,18 +19,6 @@ func VersionPrint() { os.Exit(0) } -func loadConf(fn string) (*App, error) { - fh, err := os.Open(fn) - if err != nil { - return nil, err - } - dec := yaml.NewDecoder(fh) - - app := &App{} - err = dec.Decode(app) - return app, err -} - func main() { fl := flag.NewFlagSet("Website", flag.ExitOnError) listen := fl.String("l", "0.0.0.0:8001", "Listening address") @@ -61,12 +49,6 @@ func main() { if app.ReIndexPath == "" || *indexPath != defaultIndexPath { app.ReIndexPath = *indexPath } - if app.StaticDirectory == "" { - app.StaticDirectory = "static" - } - if app.FeedPrefix == "" { - app.FeedPrefix = FeedPrefixDefault - } if *verbose { b, _ := yaml.Marshal(app) -- cgit v1.2.3