summaryrefslogtreecommitdiffstats
path: root/commands/import_jekyll.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 /commands/import_jekyll.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 'commands/import_jekyll.go')
-rw-r--r--commands/import_jekyll.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/import_jekyll.go b/commands/import_jekyll.go
index ca65acb7c..8e74fa8d1 100644
--- a/commands/import_jekyll.go
+++ b/commands/import_jekyll.go
@@ -221,7 +221,7 @@ func loadJekyllConfig(jekyllRoot string) map[string]interface{} {
func createConfigFromJekyll(inpath string, kind string, jekyllConfig map[string]interface{}) (err error) {
title := "My New Hugo Site"
- baseurl := "http://example.org/"
+ baseURL := "http://example.org/"
for key, value := range jekyllConfig {
lowerKey := strings.ToLower(key)
@@ -234,13 +234,13 @@ func createConfigFromJekyll(inpath string, kind string, jekyllConfig map[string]
case "url":
if str, ok := value.(string); ok {
- baseurl = str
+ baseURL = str
}
}
}
in := map[string]interface{}{
- "baseurl": baseurl,
+ "baseURL": baseURL,
"title": title,
"languageCode": "en-us",
"disablePathToLower": true,