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

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Cai <jimmehcai@gmail.com>2020-09-20 12:33:32 +0300
committerJimmy Cai <jimmehcai@gmail.com>2020-09-20 12:33:32 +0300
commit0bcfb160f1be37bd6d65786efe73052450384001 (patch)
treee0645dcc21691a2f72e68da8947077ed6ad1d9b0
parent3a003eadcaa3e62fab671b68bee04a53939bebc7 (diff)
fix: use .RelPermalink to include CSS
-rw-r--r--layouts/partials/footer/components/highlight.html4
-rw-r--r--layouts/partials/head/style.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/footer/components/highlight.html b/layouts/partials/footer/components/highlight.html
index d428695..80ec266 100644
--- a/layouts/partials/footer/components/highlight.html
+++ b/layouts/partials/footer/components/highlight.html
@@ -1,4 +1,4 @@
{{- $light := resources.Get "css/highlight/light.css" | minify -}}
{{- $dark := resources.Get "css/highlight/dark.css" | minify -}}
-<link rel="stylesheet" href="{{ $light.Permalink }}" media="(prefers-color-scheme: light)">
-<link rel="stylesheet" href="{{ $dark.Permalink }}" media="(prefers-color-scheme: dark)"> \ No newline at end of file
+<link rel="stylesheet" href="{{ $light.RelPermalink }}" media="(prefers-color-scheme: light)">
+<link rel="stylesheet" href="{{ $dark.RelPermalink }}" media="(prefers-color-scheme: dark)"> \ No newline at end of file
diff --git a/layouts/partials/head/style.html b/layouts/partials/head/style.html
index 68b08ba..431e212 100644
--- a/layouts/partials/head/style.html
+++ b/layouts/partials/head/style.html
@@ -1,3 +1,3 @@
{{ $sass := resources.Get "scss/style.scss" }}
{{ $style := $sass | resources.ToCSS | minify }}
-<link rel="stylesheet" href="{{ $style.Permalink }}"> \ No newline at end of file
+<link rel="stylesheet" href="{{ $style.RelPermalink }}"> \ No newline at end of file