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:
authorJosh Dzielak <dzello@users.noreply.github.com>2019-11-20 13:41:02 +0300
committerGitHub <noreply@github.com>2019-11-20 13:41:02 +0300
commit1eb09a1739bed96f028e165e866ef62025324885 (patch)
tree876911046425e02cfcb134ba516503403e89dd18
parent64172dd249aab8f82782c056a1e907e95e09e754 (diff)
parentbd12ffaf9d1aced94d05accef815641940a431a3 (diff)
Merge pull request #64 from TjeuKayim/custom-theme-relurl
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 -}}