diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 43ed1c5..33d82a5 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -81,3 +81,4 @@ - [Rabin Adhikari](https://github.com/rabinadk1/) - [Hussaini Zulkifli](https://github.com/hussaini/) - [Ellison Leão](https://github.com/ellisonleao) +- [Lucas de Oliveira](https://github.com/lucas-dOliveira) \ No newline at end of file diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 8513aae..6f8eae8 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -52,10 +52,13 @@ disqusShortname = "yourdiscussshortname" enableTwemoji = true # Custom CSS - custom_css = [] + customCSS = [] + + # Custom SCSS + customSCSS = [] # Custom JS - custom_js = [] + customJS = [] # If you want to use fathom(https://usefathom.com) for analytics, add this section [params.fathomAnalytics] @@ -141,6 +144,7 @@ disqusShortname = "yourdiscussshortname" [languages.pt-br] languagename = "Português" + languageinitials = "BR" title = "João Ninguém" [languages.pt-br.params] diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index fd0618b..8b7c2bc 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -57,11 +57,11 @@ {{ end }} {{ end }} - {{ range .Site.Params.custom_css }} + {{ range .Site.Params.customCSS }} {{ end }} - {{ range .Site.Params.custom_scss }} + {{ range .Site.Params.customSCSS }} {{/* We don't change the targetPath to because it's transparent to users */}} {{ if $.Site.IsServer }} {{ $cssOpts := (dict "enableSourceMap" true ) }} @@ -117,7 +117,7 @@ {{ end }} - {{ range .Site.Params.custom_js }} + {{ range .Site.Params.customJS }} {{ end }} diff --git a/stackbit.yaml b/stackbit.yaml index a6f3dc2..a7dd3ed 100644 --- a/stackbit.yaml +++ b/stackbit.yaml @@ -79,9 +79,11 @@ models: - type: number name: maxSeeAlsoItems - type: list - name: custom_css + name: customCSS - type: list - name: custom_js + name: customSCSS + - type: list + name: customJS - type: list name: social label: Social Media Icons