From 1420a33649abdf9de05e626d0a62a1869cdd0a47 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 11 Feb 2021 15:57:18 -0600 Subject: [PATCH] Allow customization of main Buefy CSS styles, for falafel theme --- tailbone/templates/themes/falafel/base.mako | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tailbone/templates/themes/falafel/base.mako b/tailbone/templates/themes/falafel/base.mako index 9a7f8bce..099fca16 100644 --- a/tailbone/templates/themes/falafel/base.mako +++ b/tailbone/templates/themes/falafel/base.mako @@ -153,8 +153,14 @@ <%def name="buefy_styles()"> - ## Buefy 0.7.4 - ${h.stylesheet_link('https://unpkg.com/buefy@0.7.4/dist/buefy.min.css')} + <% buefy_css = request.rattail_config.get('tailbone', 'theme.falafel.buefy_css') %> + % if buefy_css: + ## custom Buefy CSS + ${h.stylesheet_link(buefy_css)} + % else: + ## Buefy 0.7.4 + ${h.stylesheet_link('https://unpkg.com/buefy@0.7.4/dist/buefy.min.css')} + % endif ## TODO: this is only being referenced by the progress template i think?