mirror of
https://github.com/Threnklyn/reveal-hugo.git
synced 2026-06-07 14:03:33 +02:00
Pipe custom theme asset relURL
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
{{- $custom_theme_options := $.Param "reveal_hugo.custom_theme_options" | default dict -}}
|
{{- $custom_theme_options := $.Param "reveal_hugo.custom_theme_options" | default dict -}}
|
||||||
{{- if $.Param "reveal_hugo.custom_theme_compile" -}}
|
{{- if $.Param "reveal_hugo.custom_theme_compile" -}}
|
||||||
{{ $asset := resources.Get $custom_theme | resources.ExecuteAsTemplate "_.scss" . | toCSS $custom_theme_options | minify | fingerprint }}
|
{{ $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 -}}
|
{{- else -}}
|
||||||
<link rel="stylesheet" href="{{ $custom_theme | relURL }}" id="theme">
|
<link rel="stylesheet" href="{{ $custom_theme | relURL }}" id="theme">
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user