summaryrefslogtreecommitdiffstats
path: root/hugolib/config.go
diff options
context:
space:
mode:
authorAlbert Nigmatzianov <albertnigma@gmail.com>2016-10-24 20:56:00 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-10-24 20:56:00 +0200
commitf21e2f25c99c547a2f35d209935f8f1c52fa2671 (patch)
treef2bb860213e88b0244c31144cfcd872665096f06 /hugolib/config.go
parentd9f54a13c14f12ccc8af33e9dbd611c2cd113324 (diff)
all: Unify case of config variable names
All config variables starts with low-case and uses camelCase. If there is abbreviation at the beginning of the name, the whole abbreviation will be written in low-case. If there is abbreviation at the end of the name, the whole abbreviation will be written in upper-case. For example, rssURI.
Diffstat (limited to 'hugolib/config.go')
-rw-r--r--hugolib/config.go106
1 files changed, 53 insertions, 53 deletions
diff --git a/hugolib/config.go b/hugolib/config.go
index 86c35964c..2dfe128a6 100644
--- a/hugolib/config.go
+++ b/hugolib/config.go
@@ -53,57 +53,57 @@ func LoadGlobalConfig(relativeSourcePath, configFilename string) error {
func loadDefaultSettings() {
viper.SetDefault("cleanDestinationDir", false)
- viper.SetDefault("Watch", false)
- viper.SetDefault("MetaDataFormat", "toml")
- viper.SetDefault("Disable404", false)
- viper.SetDefault("DisableRSS", false)
- viper.SetDefault("DisableSitemap", false)
- viper.SetDefault("DisableRobotsTXT", false)
- viper.SetDefault("ContentDir", "content")
- viper.SetDefault("LayoutDir", "layouts")
- viper.SetDefault("StaticDir", "static")
- viper.SetDefault("ArchetypeDir", "archetypes")
- viper.SetDefault("PublishDir", "public")
- viper.SetDefault("DataDir", "data")
- viper.SetDefault("I18nDir", "i18n")
- viper.SetDefault("ThemesDir", "themes")
- viper.SetDefault("DefaultLayout", "post")
- viper.SetDefault("BuildDrafts", false)
- viper.SetDefault("BuildFuture", false)
- viper.SetDefault("BuildExpired", false)
- viper.SetDefault("UglyURLs", false)
- viper.SetDefault("Verbose", false)
- viper.SetDefault("IgnoreCache", false)
- viper.SetDefault("CanonifyURLs", false)
- viper.SetDefault("RelativeURLs", false)
- viper.SetDefault("RemovePathAccents", false)
- viper.SetDefault("Taxonomies", map[string]string{"tag": "tags", "category": "categories"})
- viper.SetDefault("Permalinks", make(PermalinkOverrides, 0))
- viper.SetDefault("Sitemap", Sitemap{Priority: -1, Filename: "sitemap.xml"})
- viper.SetDefault("DefaultExtension", "html")
- viper.SetDefault("PygmentsStyle", "monokai")
- viper.SetDefault("PygmentsUseClasses", false)
- viper.SetDefault("PygmentsCodeFences", false)
- viper.SetDefault("PygmentsOptions", "")
- viper.SetDefault("DisableLiveReload", false)
- viper.SetDefault("PluralizeListTitles", true)
- viper.SetDefault("PreserveTaxonomyNames", false)
- viper.SetDefault("ForceSyncStatic", false)
- viper.SetDefault("FootnoteAnchorPrefix", "")
- viper.SetDefault("FootnoteReturnLinkContents", "")
- viper.SetDefault("NewContentEditor", "")
- viper.SetDefault("Paginate", 10)
- viper.SetDefault("PaginatePath", "page")
- viper.SetDefault("Blackfriday", helpers.NewBlackfriday(viper.GetViper()))
- viper.SetDefault("RSSUri", "index.xml")
- viper.SetDefault("SectionPagesMenu", "")
- viper.SetDefault("DisablePathToLower", false)
- viper.SetDefault("HasCJKLanguage", false)
- viper.SetDefault("EnableEmoji", false)
- viper.SetDefault("PygmentsCodeFencesGuessSyntax", false)
- viper.SetDefault("UseModTimeAsFallback", false)
- viper.SetDefault("CurrentContentLanguage", helpers.NewDefaultLanguage())
- viper.SetDefault("DefaultContentLanguage", "en")
- viper.SetDefault("DefaultContentLanguageInSubdir", false)
- viper.SetDefault("EnableMissingTranslationPlaceholders", false)
+ viper.SetDefault("watch", false)
+ viper.SetDefault("metaDataFormat", "toml")
+ viper.SetDefault("disable404", false)
+ viper.SetDefault("disableRSS", false)
+ viper.SetDefault("disableSitemap", false)
+ viper.SetDefault("disableRobotsTXT", false)
+ viper.SetDefault("contentDir", "content")
+ viper.SetDefault("layoutDir", "layouts")
+ viper.SetDefault("staticDir", "static")
+ viper.SetDefault("archetypeDir", "archetypes")
+ viper.SetDefault("publishDir", "public")
+ viper.SetDefault("dataDir", "data")
+ viper.SetDefault("i18nDir", "i18n")
+ viper.SetDefault("themesDir", "themes")
+ viper.SetDefault("defaultLayout", "post")
+ viper.SetDefault("buildDrafts", false)
+ viper.SetDefault("buildFuture", false)
+ viper.SetDefault("buildExpired", false)
+ viper.SetDefault("uglyURLs", false)
+ viper.SetDefault("verbose", false)
+ viper.SetDefault("ignoreCache", false)
+ viper.SetDefault("canonifyURLs", false)
+ viper.SetDefault("relativeURLs", false)
+ viper.SetDefault("removePathAccents", false)
+ viper.SetDefault("taxonomies", map[string]string{"tag": "tags", "category": "categories"})
+ viper.SetDefault("permalinks", make(PermalinkOverrides, 0))
+ viper.SetDefault("sitemap", Sitemap{Priority: -1, Filename: "sitemap.xml"})
+ viper.SetDefault("defaultExtension", "html")
+ viper.SetDefault("pygmentsStyle", "monokai")
+ viper.SetDefault("pygmentsUseClasses", false)
+ viper.SetDefault("pygmentsCodeFences", false)
+ viper.SetDefault("pygmentsOptions", "")
+ viper.SetDefault("disableLiveReload", false)
+ viper.SetDefault("pluralizeListTitles", true)
+ viper.SetDefault("preserveTaxonomyNames", false)
+ viper.SetDefault("forceSyncStatic", false)
+ viper.SetDefault("footnoteAnchorPrefix", "")
+ viper.SetDefault("footnoteReturnLinkContents", "")
+ viper.SetDefault("newContentEditor", "")
+ viper.SetDefault("paginate", 10)
+ viper.SetDefault("paginatePath", "page")
+ viper.SetDefault("blackfriday", helpers.NewBlackfriday(viper.GetViper()))
+ viper.SetDefault("rSSUri", "index.xml")
+ viper.SetDefault("sectionPagesMenu", "")
+ viper.SetDefault("disablePathToLower", false)
+ viper.SetDefault("hasCJKLanguage", false)
+ viper.SetDefault("enableEmoji", false)
+ viper.SetDefault("pygmentsCodeFencesGuessSyntax", false)
+ viper.SetDefault("useModTimeAsFallback", false)
+ viper.SetDefault("currentContentLanguage", helpers.NewDefaultLanguage())
+ viper.SetDefault("defaultContentLanguage", "en")
+ viper.SetDefault("defaultContentLanguageInSubdir", false)
+ viper.SetDefault("enableMissingTranslationPlaceholders", false)
}