From c5fbd48e918a6f43281ee4bb81c9b25922fe7758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Pannetier?= <35581688+clement-pannetier@users.noreply.github.com> Date: Wed, 4 Nov 2020 18:28:31 +0100 Subject: [PATCH] Update variables names to camelCase format for consistency (#473) --- exampleSite/config.toml | 28 ++++++++--------- .../content/posts/creating-a-new-theme.md | 2 +- exampleSite/content/posts/goisforlovers.md | 2 +- exampleSite/content/posts/hugoisforlovers.md | 2 +- layouts/_default/baseof.html | 8 ++--- layouts/partials/float.html | 2 +- layouts/partials/footer.html | 4 +-- layouts/partials/home.html | 2 +- layouts/partials/list.html | 2 +- layouts/partials/posts/commento.html | 4 +-- layouts/partials/posts/disqus.html | 2 +- layouts/partials/posts/series.html | 2 +- layouts/posts/li.html | 2 +- layouts/posts/single.html | 4 +-- stackbit.yaml | 30 +++++++++---------- 15 files changed, 48 insertions(+), 48 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 976a514..7020e38 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,16 +1,16 @@ -baseurl = "http://www.example.com" +baseURL = "http://www.example.com" title = "johndoe" theme = "hugo-coder" -languagecode = "en" -defaultcontentlanguage = "en" +languageCode = "en" +defaultContentLanguage = "en" paginate = 20 -pygmentsstyle = "b2" -pygmentscodefences = true -pygmentscodefencesguesssyntax = true +pygmentsStyle = "b2" +pygmentsCodeFences = true +pygmentsCodeFencesGuessSyntax = true disqusShortname = "yourdiscussshortname" @@ -19,11 +19,11 @@ disqusShortname = "yourdiscussshortname" description = "John Doe's personal website" keywords = "blog,developer,personal" info = "Full Stack DevOps and Magician" - avatarurl = "images/avatar.jpg" + avatarURL = "images/avatar.jpg" #gravatar = "john.doe@example.com" - footercontent = "Enter a text here." + footerContent = "Enter a text here." - dateformat = "January 2, 2006" + dateFormat = "January 2, 2006" hideFooter = false hideCredits = false @@ -40,10 +40,10 @@ disqusShortname = "yourdiscussshortname" # "auto" (use preference set by browser) # "dark" (dark background, light foreground) # "light" (light background, dark foreground) (default) - colorscheme = "auto" + colorScheme = "auto" # Hide the toggle button, along with the associated vertical divider - hidecolorschemetoggle = false + hideColorSchemeToggle = false # Series see also post count maxSeeAlsoItems = 5 @@ -118,7 +118,7 @@ disqusShortname = "yourdiscussshortname" [languages] [languages.en] - languagename = "English" + languageName = "English" [languages.en.menu] @@ -144,7 +144,7 @@ disqusShortname = "yourdiscussshortname" [languages.pt-br] - languagename = "Português" + languageName = "Português" title = "João Ninguém" [languages.pt-br.params] @@ -152,7 +152,7 @@ disqusShortname = "yourdiscussshortname" info = "Full Stack DevOps e Mágico" description = "Sítio pessoal de João Ninguém" keywords = "blog,desenvolvedor,pessoal" - footercontent = "Coloque algum texto aqui." + footerContent = "Coloque algum texto aqui." [languages.pt-br.menu] diff --git a/exampleSite/content/posts/creating-a-new-theme.md b/exampleSite/content/posts/creating-a-new-theme.md index 0db1741..6534287 100644 --- a/exampleSite/content/posts/creating-a-new-theme.md +++ b/exampleSite/content/posts/creating-a-new-theme.md @@ -309,7 +309,7 @@ Edit the file to add the theme, add a title for the site, and specify that all o ``` $ vi config.toml theme = "zafta" -baseurl = "" +baseURL = "" languageCode = "en-us" title = "zafta - totally refreshing" MetaDataFormat = "toml" diff --git a/exampleSite/content/posts/goisforlovers.md b/exampleSite/content/posts/goisforlovers.md index 4e6e7a4..5034b1b 100644 --- a/exampleSite/content/posts/goisforlovers.md +++ b/exampleSite/content/posts/goisforlovers.md @@ -241,7 +241,7 @@ instead of depending on the context. {{ $title := .Site.Title }} {{ range .Params.tags }} -