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

github.com/ThemeTony/hugo-theme-tony.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFFRaycoder <nn_201312@163.com>2020-06-28 14:36:30 +0300
committerFFRaycoder <nn_201312@163.com>2020-06-28 14:36:30 +0300
commitaaf70728cacdb51083d7894b82b407a9f643e299 (patch)
tree17d747b9c41bbfe1af7f212111d8b45766afbc72
parent2b6c354202f8aeeb5496889c7cfd579178d99fdd (diff)
fix: different css hash in different langs
-rw-r--r--layouts/partials/style.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/style.html b/layouts/partials/style.html
index 4e7f619..3f2ff0e 100644
--- a/layouts/partials/style.html
+++ b/layouts/partials/style.html
@@ -3,5 +3,5 @@
{{- $path := (strings.TrimPrefix "/" (printf `%s/css/tony.min.css` .Site.LanguagePrefix)) -}}
{{- $options := (dict "targetPath" $path "outputStyle" "compressed") -}}
-{{- $style := resources.Get "scss/main.scss" | resources.ExecuteAsTemplate (printf "%s/styles/main-rendered.scss" .Lang) . | resources.ToCSS $options | resources.Fingerprint -}}
+{{- $style := resources.Get "scss/main.scss" | resources.ExecuteAsTemplate (printf "%s/styles/main-rendered.scss") . | resources.ToCSS $options | resources.Fingerprint -}}
{{- printf `<link rel="stylesheet" href="%s" integrity="%s"/>` $style.RelPermalink $style.Data.Integrity | safeHTML -}}