diff options
author | Christoph Cullmann <cullmann@kde.org> | 2022-10-21 21:01:11 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2022-10-21 21:01:11 +0200 |
commit | 582a8a33aff644a6b07534aaf677973abc6f154c (patch) | |
tree | 069a34670b1b91041ef9f3fcb73192dd05c60963 /themes/LoveIt/layouts/partials/init.html | |
parent | 038eabdda56dbfdbbba4328ac035cc4d77e8d80d (diff) |
use different theme that is a lot slimer
Diffstat (limited to 'themes/LoveIt/layouts/partials/init.html')
-rw-r--r-- | themes/LoveIt/layouts/partials/init.html | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/themes/LoveIt/layouts/partials/init.html b/themes/LoveIt/layouts/partials/init.html deleted file mode 100644 index f6794fb..0000000 --- a/themes/LoveIt/layouts/partials/init.html +++ /dev/null @@ -1,31 +0,0 @@ -{{- .Scratch.Set "version" "0.2.11" -}} - -{{- $params := .Params | merge .Site.Params.page -}} - -{{- if eq hugo.Environment "production" -}} - {{- $cdn := .Site.Params.cdn -}} - {{- with $cdn.data -}} - {{- $cdnData := printf "data/cdn/%v" . | resources.Get | transform.Unmarshal -}} - {{- $cdn = dict "simpleIconsPrefix" $cdnData.prefix.simpleIcons -}} - {{- $prefix := $cdnData.prefix.libFiles | default "" -}} - {{- range $key, $value := $cdnData.libFiles -}} - {{- $cdn = printf "%v%v" $prefix $value | dict $key | merge $cdn -}} - {{- end -}} - {{- end -}} - {{- .Scratch.Set "cdn" $cdn -}} - {{- .Scratch.Set "fingerprint" .Site.Params.fingerprint -}} - {{- .Scratch.Set "analytics" .Site.Params.analytics -}} - {{- .Scratch.Set "comment" $params.comment -}} - {{- if eq .Params.comment true -}} - {{- .Scratch.Set "comment" .Site.Params.comment -}} - {{- else if eq .Params.comment false -}} - {{- .Scratch.Set "comment" dict -}} - {{- end -}} -{{- else if eq .Site .Sites.First -}} - {{- warnf "\n\nCurrent environment is \"development\". The \"comment system\", \"CDN\" and \"fingerprint\" will be disabled.\n当前运行环境是 \"development\". \"评论系统\", \"CDN\" 和 \"fingerprint\" 不会启用.\n" -}} -{{- end -}} - -{{- .Scratch.Set "params" $params -}} -{{- .Scratch.Set "this" dict -}} - -{{- partial "plugin/compatibility.html" . -}} |