diff options
author | Josh Dzielak <dzello@users.noreply.github.com> | 2019-11-20 13:41:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-20 13:41:02 +0300 |
commit | 1eb09a1739bed96f028e165e866ef62025324885 (patch) | |
tree | 876911046425e02cfcb134ba516503403e89dd18 | |
parent | 64172dd249aab8f82782c056a1e907e95e09e754 (diff) | |
parent | bd12ffaf9d1aced94d05accef815641940a431a3 (diff) |
Merge pull request #64 from TjeuKayim/custom-theme-relurl
Pipe custom theme asset relURL
-rw-r--r-- | layouts/partials/layout/theme.html | 2 |
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 -}} |