aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/scripts.html
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-07-06 22:50:37 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-07-06 22:50:37 +0800
commitfcb48d9be078df0420ff98228fee4ac1b013f47b (patch)
tree8cc474c4c2cfbe29dead77a59eb805fb608f2891 /layouts/partials/scripts.html
parent90a17f8540f33b87fabc71bf22910c4d6792827c (diff)
refactor(param): camelcase for parameter names
BREAKING CHANGE: Rename parameter names. | origin | now | | :------: |:--------:| | fancyboxJ**s** | fancyboxJ**S** | | fancyboxC**ss**| fancyboxC**SS**| | baidu_push | baidu**P**ush | | baidu_analytics | baidu**A**nalytics | | baidu_verification | baidu**V**erification | | google_verification | google**V**erification |
Diffstat (limited to 'layouts/partials/scripts.html')
-rw-r--r--layouts/partials/scripts.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index b9c9a55..47df69b 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -3,7 +3,7 @@
{{- if .Site.Params.publicCDN.enable }}
{{ .Site.Params.publicCDN.jquery | safeHTML }}
{{ .Site.Params.publicCDN.slideout | safeHTML }}
- {{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxJs | safeHTML }}{{ end }}
+ {{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxJS | safeHTML }}{{ end }}
{{- else -}}
<script type="text/javascript" src="{{ "lib/jquery/jquery-3.2.1.min.js" | relURL }}"></script>
<script type="text/javascript" src="{{ "lib/slideout/slideout-1.0.1.min.js" | relURL }}"></script>
@@ -90,7 +90,7 @@
{{ template "_internal/google_analytics_async.html" . }}
{{- end -}}
-{{- with .Site.Params.baidu_analytics -}}
+{{- with .Site.Params.baiduAnalytics -}}
<script id="baidu_analytics">
var _hmt = _hmt || [];
(function() {
@@ -103,8 +103,8 @@
</script>
{{- end }}
-<!-- baidu_push -->
-{{- if .Site.Params.baidu_push -}}
+<!-- baidu push -->
+{{- if .Site.Params.baiduPush -}}
<script id="baidu_push">
(function(){
if (window.location.hostname === 'localhost') return;
@@ -123,6 +123,6 @@
{{- end }}
<!-- custom js -->
-{{ range .Site.Params.customJS }}
+{{ range .Site.Params.customJS -}}
<script src="{{ "/js/" | relURL }}{{ . }}"></script>
{{ end }}