From 82ccf83b1e39a4eb557a80166fbc0b175da058e9 Mon Sep 17 00:00:00 2001
From: Lucas de Oliveira <lucasvitalate@gmail.com>
Date: Tue, 13 Oct 2020 22:31:49 +0000
Subject: [PATCH] Use camelCase variables on custom_css, custom_js and custom_scss (#434)
---
exampleSite/config.toml | 8 ++++++--
layouts/_default/baseof.html | 6 +++---
stackbit.yaml | 6 ++++--
CONTRIBUTORS.md | 1 +
4 files changed, 14 insertions(+), 7 deletions(-)
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 @@
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 @@
[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 }}
<link rel="stylesheet" href="{{ . | relURL }}" />
{{ 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 @@
<script src="{{ $script.RelPermalink }}"></script>
{{ end }}
- {{ range .Site.Params.custom_js }}
+ {{ range .Site.Params.customJS }}
<script src="{{ . | relURL }}"></script>
{{ end }}
diff --git a/stackbit.yaml b/stackbit.yaml
index a6f3dc2..a7dd3ed 100644
--- a/stackbit.yaml
+++ b/stackbit.yaml
@@ -79,9 +79,11 @@
- 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
--
Gitblit v1.10.0