From fd08e16ec8abb923a1ffe23a60b2aa8316151559 Mon Sep 17 00:00:00 2001 From: "Dana H. P'Simer" Date: Fri, 24 Apr 2015 14:25:09 -0400 Subject: [PATCH] Add RSSUri to specify the name of the RSS file --- commands/hugo.go | 1 + hugolib/rss_test.go | 1 + hugolib/site.go | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/commands/hugo.go b/commands/hugo.go index 6d4750165..f93e81982 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -152,6 +152,7 @@ func InitializeConfig() { viper.SetDefault("Paginate", 10) viper.SetDefault("PaginatePath", "page") viper.SetDefault("Blackfriday", helpers.NewBlackfriday()) + viper.SetDefault("RSSUri", "index.xml") if hugoCmdV.PersistentFlags().Lookup("buildDrafts").Changed { viper.Set("BuildDrafts", Draft) diff --git a/hugolib/rss_test.go b/hugolib/rss_test.go index 497c0325a..23b838c40 100644 --- a/hugolib/rss_test.go +++ b/hugolib/rss_test.go @@ -34,6 +34,7 @@ const RSS_TEMPLATE = `