Skip to content

Commit 82ccf83

Browse files
Use camelCase variables on custom_css, custom_js and custom_scss (luizdepra#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
1 parent 561082d commit 82ccf83

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

CONTRIBUTORS.md

+1
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,4 @@
8181
- [Rabin Adhikari](https://github.com/rabinadk1/)
8282
- [Hussaini Zulkifli](https://github.com/hussaini/)
8383
- [Ellison Leão](https://github.com/ellisonleao)
84+
- [Lucas de Oliveira](https://github.com/lucas-dOliveira)

exampleSite/config.toml

+6-2
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,13 @@ disqusShortname = "yourdiscussshortname"
5252
enableTwemoji = true
5353

5454
# Custom CSS
55-
custom_css = []
55+
customCSS = []
56+
57+
# Custom SCSS
58+
customSCSS = []
5659

5760
# Custom JS
58-
custom_js = []
61+
customJS = []
5962

6063
# If you want to use fathom(https://usefathom.com) for analytics, add this section
6164
[params.fathomAnalytics]
@@ -141,6 +144,7 @@ disqusShortname = "yourdiscussshortname"
141144

142145
[languages.pt-br]
143146
languagename = "Português"
147+
languageinitials = "BR"
144148
title = "João Ninguém"
145149

146150
[languages.pt-br.params]

layouts/_default/baseof.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@
5757
{{ end }}
5858
{{ end }}
5959

60-
{{ range .Site.Params.custom_css }}
60+
{{ range .Site.Params.customCSS }}
6161
<link rel="stylesheet" href="{{ . | relURL }}" />
6262
{{ end }}
6363

64-
{{ range .Site.Params.custom_scss }}
64+
{{ range .Site.Params.customSCSS }}
6565
{{/* We don't change the targetPath to because it's transparent to users */}}
6666
{{ if $.Site.IsServer }}
6767
{{ $cssOpts := (dict "enableSourceMap" true ) }}
@@ -117,7 +117,7 @@
117117
<script src="{{ $script.RelPermalink }}"></script>
118118
{{ end }}
119119

120-
{{ range .Site.Params.custom_js }}
120+
{{ range .Site.Params.customJS }}
121121
<script src="{{ . | relURL }}"></script>
122122
{{ end }}
123123

stackbit.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,11 @@ models:
7979
- type: number
8080
name: maxSeeAlsoItems
8181
- type: list
82-
name: custom_css
82+
name: customCSS
8383
- type: list
84-
name: custom_js
84+
name: customSCSS
85+
- type: list
86+
name: customJS
8587
- type: list
8688
name: social
8789
label: Social Media Icons

0 commit comments

Comments
 (0)