From dfda8c0cd4b7edd39a4cda8f47c0d9b13ccf9b37 Mon Sep 17 00:00:00 2001 From: dzello Date: Wed, 6 Feb 2019 14:10:39 +0100 Subject: [PATCH] Support custom_theme_options param to customize asset compilation --- layouts/partials/layout/theme.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/partials/layout/theme.html b/layouts/partials/layout/theme.html index 390fa73..fe9e6eb 100644 --- a/layouts/partials/layout/theme.html +++ b/layouts/partials/layout/theme.html @@ -1,12 +1,13 @@ {{- $reveal_location := $.Param "reveal_hugo.reveal_cdn" | default "reveal-js" -}} {{- $highlight_location := $.Param "reveal_hugo.highlight_cdn" | default "highlight-js" -}} - +{{- $custom_theme := $.Param "reveal_hugo.custom_theme" -}} {{- $custom_theme := $.Param "reveal_hugo.custom_theme" -}} {{- if $custom_theme -}} + {{- $custom_theme_options := $.Param "reveal_hugo.custom_theme_options" | default dict -}} {{- if $.Param "reveal_hugo.custom_theme_compile" -}} - {{ $asset := resources.Get $custom_theme | toCSS | minify | fingerprint }} + {{ $asset := resources.Get $custom_theme | toCSS $custom_theme_options | minify | fingerprint }} {{- else -}}