Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-02-14 16:09:21 +0300
committerDillon <dillonzq@outlook.com>2020-02-14 16:09:21 +0300
commit1088f86b6da35a5d70fc6d9df831655648591fbf (patch)
tree0ac067d2c1538bdda8b020b98a5371f09c1cb254 /layouts/_default/baseof.html
parent12bd1e1935584ab2fd77d47332e75931f0d71ed9 (diff)
chore: refactor scripts code style
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 0333550..bc131ae 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -3,6 +3,11 @@
{{- errorf "\n\nThere are two possible situations that led to this error:\n 1. You haven't copied the config.toml yet. See https://github.com/dillonzq/LoveIt#installation \n 2. You have an incompatible update. See https://github.com//dillonzq/LoveIt/blob/master/CHANGELOG.md \n\n有两种可能的情况会导致这个错误发生:\n 1. 你还没有复制 config.toml 参考 https://github.com/dillonzq/LoveIt#installation \n 2. 你进行了一次不兼容的更新 参考 https://github.com//dillonzq/LoveIt/blob/master/CHANGELOG.md \n" -}}
{{- end -}}
+{{- if eq (getenv "HUGO_ENV") "production" -}}
+ {{- .Scratch.Set "production" true -}}
+ {{- .Scratch.Set "CDN" .Site.Params.cdn -}}
+{{- end -}}
+
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
@@ -51,7 +56,7 @@
<span>&nbsp;</span>
</a>
- {{- /* Load scripts */ -}}
- {{- partial "scripts.html" . -}}
+ {{- /* Load script */ -}}
+ {{- partial "script.html" . -}}
</body>
</html>