From 64e5ed0ed7c78604d061eb89d00f3107a0decdf5 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Tue, 1 Mar 2022 07:49:57 +0100 Subject: [PATCH] Fixed malformed Google Fonts url when a font setting was omitted --- material/base.html | 9 +++++---- src/base.html | 11 ++++++----- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/material/base.html b/material/base.html index ea5a1fb96..fc7a74d47 100644 --- a/material/base.html +++ b/material/base.html @@ -50,13 +50,14 @@ {% block libs %}{% endblock %} {% block fonts %} {% if config.theme.font != false %} - {% set font = config.theme.font %} + {% set text = config.theme.font.text | d("Roboto", true) %} + {% set code = config.theme.font.code | d("Roboto Mono", true) %} - + {% endif %} {% endblock %} {% for path in config["extra_css"] %} diff --git a/src/base.html b/src/base.html index fc7adb415..b98d8fa06 100644 --- a/src/base.html +++ b/src/base.html @@ -102,19 +102,20 @@ {% if config.theme.font != false %} - {% set font = config.theme.font %} + {% set text = config.theme.font.text | d("Roboto", true) %} + {% set code = config.theme.font.code | d("Roboto Mono", true) %} {% endif %}