From 7e8870de6ca32fe8a159794a7ad319c7c45cf8fe Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Wed, 27 Dec 2023 13:27:20 -0800 Subject: [PATCH] Factor launching bergamot into a helper function --- layouts/shortcodes/bergamot_js_css.html | 81 +++++++++++++++++++++++++ layouts/shortcodes/bergamot_widget.html | 79 +----------------------- 2 files changed, 82 insertions(+), 78 deletions(-) diff --git a/layouts/shortcodes/bergamot_js_css.html b/layouts/shortcodes/bergamot_js_css.html index c36f7a4..89f5c17 100644 --- a/layouts/shortcodes/bergamot_js_css.html +++ b/layouts/shortcodes/bergamot_js_css.html @@ -1,3 +1,84 @@ {{ $style := resources.Get "scss/bergamot.scss" | resources.ToCSS | resources.Minify }} + diff --git a/layouts/shortcodes/bergamot_widget.html b/layouts/shortcodes/bergamot_widget.html index 195af49..72bc978 100644 --- a/layouts/shortcodes/bergamot_widget.html +++ b/layouts/shortcodes/bergamot_widget.html @@ -1,81 +1,4 @@