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

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Tam <sere@live.hk>2019-07-25 17:15:03 +0300
committerVincent Tam <sere@live.hk>2019-07-25 17:15:03 +0300
commit4f59157d5b4da425040df4f771ed8282fa4955e9 (patch)
treef9dcbb1cf90cdb71a53fa1a48c8fe7d0da00cc5a /layouts/partials/head/css.html
parente18c5c54295eaafdd8483e8ede487538866166d9 (diff)
Replace leading slash in some relURL
Diffstat (limited to 'layouts/partials/head/css.html')
-rw-r--r--layouts/partials/head/css.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/head/css.html b/layouts/partials/head/css.html
index 3e54be5..6d00b8d 100644
--- a/layouts/partials/head/css.html
+++ b/layouts/partials/head/css.html
@@ -1,11 +1,11 @@
-{{ $bundleRaw := resources.Get "/sass/style.sass" | resources.ExecuteAsTemplate "/css/main.tmp.css" . }}
+{{ $bundleRaw := resources.Get "sass/style.sass" | resources.ExecuteAsTemplate "css/main.tmp.css" . }}
{{ if .Site.IsServer }}
-{{ $cssOpts := (dict "targetPath" "/css/main.css" "enableSourceMap" true ) }}
+{{ $cssOpts := (dict "targetPath" "css/main.css" "enableSourceMap" true ) }}
{{ $bundle := $bundleRaw | toCSS $cssOpts }}
<link rel="stylesheet" href="{{ $bundle.RelPermalink }}" media="screen">
{{ else }}
-{{ $cssOpts := (dict "targetPath" "/css/main.css" ) }}
+{{ $cssOpts := (dict "targetPath" "css/main.css" ) }}
{{ $postCSSOpts := (dict "use" "autoprefixer" ) }}
{{ $bundle := $bundleRaw | toCSS $cssOpts | postCSS $postCSSOpts | minify | fingerprint }}
<link rel="stylesheet" href="{{ $bundle.RelPermalink }}" integrity="{{ $bundle.Data.Integrity }}" crossorigin="anonymous" media="screen">