Pipe custom theme asset relURL

This commit is contained in:
Tjeu Kayim
2019-11-17 20:17:01 +01:00
parent 64172dd249
commit bd12ffaf9d
+1 -1
View File
@@ -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 -}}