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

github.com/dzello/reveal-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTjeu Kayim <15987676+TjeuKayim@users.noreply.github.com>2019-11-17 22:17:01 +0300
committerTjeu Kayim <15987676+TjeuKayim@users.noreply.github.com>2019-11-17 22:17:01 +0300
commitbd12ffaf9d1aced94d05accef815641940a431a3 (patch)
tree876911046425e02cfcb134ba516503403e89dd18
parent64172dd249aab8f82782c056a1e907e95e09e754 (diff)
Pipe custom theme asset relURL
-rw-r--r--layouts/partials/layout/theme.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/layout/theme.html b/layouts/partials/layout/theme.html
index d920eb6..a4f7c86 100644
--- a/layouts/partials/layout/theme.html
+++ b/layouts/partials/layout/theme.html
@@ -9,7 +9,7 @@
{{- $custom_theme_options := $.Param "reveal_hugo.custom_theme_options" | default dict -}}
{{- if $.Param "reveal_hugo.custom_theme_compile" -}}
{{ $asset := resources.Get $custom_theme | resources.ExecuteAsTemplate "_.scss" . | toCSS $custom_theme_options | minify | fingerprint }}
- <link rel="stylesheet" href="{{ $asset.Permalink }}" id="theme">
+ <link rel="stylesheet" href="{{ $asset.Permalink | relURL }}" id="theme">
{{- else -}}
<link rel="stylesheet" href="{{ $custom_theme | relURL }}" id="theme">
{{- end -}}