diff --git a/README.md b/README.md index a5c76d9..d5a6d06 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,8 @@ hugo -t cocoa Please see the sample [`config.toml`](https://github.com/nishanths/cocoa-hugo-theme/blob/master/exampleSite/config.toml) in `exampleSite/`. +Note that if you already use cocoa but have updated to Hugo 0.18, you must lowercase every params of your existing `config.toml`. (like in the sample) + #### Creating Content * Posts should generally go under a `content/blog` directory. Typically you would run: @@ -81,7 +83,7 @@ See this [Imgur album](http://imgur.com/a/skabh) or the [`images/`](https://gith > v0.2.0 -* Added Disqus support. To enable Disqus, add `disqusShortname = "XYZ"` to `config.toml`. More details: . +* Added Disqus support. To enable Disqus, add `disqusshortname = "XYZ"` to `config.toml`. More details: . * In the posts list, replaced date with bullets at smaller screen widths. > v0.1.0 diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 14c3c34..0cf808c 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -8,7 +8,7 @@ publishdir = "public" author = "Arthur Dent" title = "Arthur Dent" pygmentsuseclasses = true -disqusShortname = "cocoaexamplesite" # Comment out to disable Disqus. +disqusshortname = "cocoaexamplesite" # Comment out to disable Disqus. pluralizelisttitles = false [permalinks] @@ -16,21 +16,21 @@ fixed = ":title/" blog = "blog/:slug/" [params] -Author = "Arthur Dent" -# Gravatar = "" # do not use in the same time as Avatar -# Avatar = "" # path to image in static dir e.g img/avatar.png (do not use in the same time as Gravatar) -CacheBuster = true -DateForm = "Jan 2, 2006" -DateFormFull = "Mon Jan 2 2006 15:04:05 MST" -Description = "Don't panic" -Email = "you@example.space" -FaviconFile = "img/leaf.ico" -GATracker = "XYZ" -GitHub = "//github.com/you" -HighlightJS = true -Initials = "ad" # Displayed on single post page; DEPRECATED in v0.3.0. -Lang = "en" -LinkedIn = "//linkedin.com/in/you" -Twitter = "//twitter.com/you" +author = "Arthur Dent" +# gravatar = "" # do not use in the same time as Avatar +# avatar = "" # path to image in static dir e.g img/avatar.png (do not use in the same time as Gravatar) +cachebuster = true +dateform = "Jan 2, 2006" +dateformfull = "Mon Jan 2 2006 15:04:05 MST" +description = "Don't panic" +email = "you@example.space" +faviconfile = "img/leaf.ico" +gatracker = "XYZ" +github = "//github.com/you" +highlightjs = true +initials = "ad" # Displayed on single post page; DEPRECATED in v0.3.0. +lang = "en" +linkedin = "//linkedin.com/in/you" +twitter = "//twitter.com/you" -ExtraCssFiles = [ "/css/override.css" ] # In your `static/css`, add/remove files as necessary. +extracssfiles = [ "/css/override.css" ] # In your `static/css`, add/remove files as necessary. diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 622feb8..cdee300 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -9,7 +9,7 @@
-
{{ .Date.Format (.Site.Param "DateForm") }}
+
{{ .Date.Format .Site.Params.dateform }}
{{ if eq 1 .ReadingTime }}{{ .ReadingTime }} minute read{{ else }}{{ .ReadingTime }} minutes read{{ end }}
diff --git a/layouts/partials/footer_scripts.html b/layouts/partials/footer_scripts.html index 0952415..3d5b926 100644 --- a/layouts/partials/footer_scripts.html +++ b/layouts/partials/footer_scripts.html @@ -1,18 +1,18 @@ -{{ if .Site.Param "GATracker" }} +{{ if .Site.Params.gatracker }} {{ end }} -{{ if .Site.Param "HighlightJS" }} +{{ if .Site.Params.highlightjs }}