From fcb48d9be078df0420ff98228fee4ac1b013f47b Mon Sep 17 00:00:00 2001
From: olOwOlo <26087907+olOwOlo@users.noreply.github.com>
Date: Fri, 6 Jul 2018 22:50:37 +0800
Subject: 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 |
---
layouts/partials/head.html | 6 +++---
layouts/partials/scripts.html | 10 +++++-----
2 files changed, 8 insertions(+), 8 deletions(-)
(limited to 'layouts')
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 86ab6cf..19c000c 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -29,8 +29,8 @@
{{- end }}
-{{ with .Site.Params.baidu_verification }}{{ end }}
-{{ with .Site.Params.google_verification }}{{ end }}
+{{ with .Site.Params.baiduVerification }}{{ end }}
+{{ with .Site.Params.googleVerification }}{{ end }}
@@ -63,7 +63,7 @@
{{ if .Site.Params.publicCDN.enable -}}
- {{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxCss | safeHTML }}{{ end }}
+ {{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxCSS | safeHTML }}{{ end }}
{{- else -}}
{{ if .Site.Params.fancybox }}{{ end }}
{{- end }}
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 -}}
@@ -90,7 +90,7 @@
{{ template "_internal/google_analytics_async.html" . }}
{{- end -}}
-{{- with .Site.Params.baidu_analytics -}}
+{{- with .Site.Params.baiduAnalytics -}}
{{- end }}
-
-{{- if .Site.Params.baidu_push -}}
+
+{{- if .Site.Params.baiduPush -}}
{{ end }}
--
cgit v1.2.3