Use camelCase variables on custom_css, custom_js and custom_scss (#434)

* Rename custom_css variable to customCSS

* Rename custom_js variable to customJS

* Change contribuitors.md

* Rename custom_scss to customSCSS

* Add custom SCSS on example config.toml

* Add customSCSS on stackbit.yaml
This commit is contained in:
Lucas de Oliveira
2020-10-13 19:31:49 -03:00
committed by GitHub
parent 561082dbfa
commit 82ccf83b1e
4 changed files with 14 additions and 7 deletions

View File

@@ -81,3 +81,4 @@
- [Rabin Adhikari](https://github.com/rabinadk1/) - [Rabin Adhikari](https://github.com/rabinadk1/)
- [Hussaini Zulkifli](https://github.com/hussaini/) - [Hussaini Zulkifli](https://github.com/hussaini/)
- [Ellison Leão](https://github.com/ellisonleao) - [Ellison Leão](https://github.com/ellisonleao)
- [Lucas de Oliveira](https://github.com/lucas-dOliveira)

View File

@@ -52,10 +52,13 @@ disqusShortname = "yourdiscussshortname"
enableTwemoji = true enableTwemoji = true
# Custom CSS # Custom CSS
custom_css = [] customCSS = []
# Custom SCSS
customSCSS = []
# Custom JS # Custom JS
custom_js = [] customJS = []
# If you want to use fathom(https://usefathom.com) for analytics, add this section # If you want to use fathom(https://usefathom.com) for analytics, add this section
[params.fathomAnalytics] [params.fathomAnalytics]
@@ -141,6 +144,7 @@ disqusShortname = "yourdiscussshortname"
[languages.pt-br] [languages.pt-br]
languagename = "Português" languagename = "Português"
languageinitials = "BR"
title = "João Ninguém" title = "João Ninguém"
[languages.pt-br.params] [languages.pt-br.params]

View File

@@ -57,11 +57,11 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ range .Site.Params.custom_css }} {{ range .Site.Params.customCSS }}
<link rel="stylesheet" href="{{ . | relURL }}" /> <link rel="stylesheet" href="{{ . | relURL }}" />
{{ end }} {{ end }}
{{ range .Site.Params.custom_scss }} {{ range .Site.Params.customSCSS }}
{{/* We don't change the targetPath to because it's transparent to users */}} {{/* We don't change the targetPath to because it's transparent to users */}}
{{ if $.Site.IsServer }} {{ if $.Site.IsServer }}
{{ $cssOpts := (dict "enableSourceMap" true ) }} {{ $cssOpts := (dict "enableSourceMap" true ) }}
@@ -117,7 +117,7 @@
<script src="{{ $script.RelPermalink }}"></script> <script src="{{ $script.RelPermalink }}"></script>
{{ end }} {{ end }}
{{ range .Site.Params.custom_js }} {{ range .Site.Params.customJS }}
<script src="{{ . | relURL }}"></script> <script src="{{ . | relURL }}"></script>
{{ end }} {{ end }}

View File

@@ -79,9 +79,11 @@ models:
- type: number - type: number
name: maxSeeAlsoItems name: maxSeeAlsoItems
- type: list - type: list
name: custom_css name: customCSS
- type: list - type: list
name: custom_js name: customSCSS
- type: list
name: customJS
- type: list - type: list
name: social name: social
label: Social Media Icons label: Social Media Icons