diff --git a/src/base.html b/src/base.html index f37186323..2e37a8173 100644 --- a/src/base.html +++ b/src/base.html @@ -23,7 +23,6 @@ {% import "partials/language.html" as lang with context %} -{% set feature = config.theme.feature %} {% set palette = config.theme.palette %} {% set font = config.theme.font %} @@ -238,7 +237,7 @@ {% block tabs %} - {% if feature.tabs %} + {% if "tabs" in config.theme.features %} {% include "partials/tabs.html" %} {% endif %} {% endblock %} @@ -341,6 +340,13 @@ {% endblock %} + + {% block config %} + + {% endblock %} + {% block scripts %} @@ -367,15 +373,15 @@ diff --git a/src/partials/hero.html b/src/partials/hero.html index e6b3ca649..cec4a2872 100644 --- a/src/partials/hero.html +++ b/src/partials/hero.html @@ -20,12 +20,9 @@ IN THE SOFTWARE. --> - -{% set feature = config.theme.feature %} - {% set class = "md-hero" %} -{% if not feature.tabs %} +{% if "tabs" not in config.theme.features %} {% set class = "md-hero md-hero--expand" %} {% endif %} diff --git a/src/partials/language.html b/src/partials/language.html index 5582155e5..d8b192668 100644 --- a/src/partials/language.html +++ b/src/partials/language.html @@ -20,10 +20,8 @@ IN THE SOFTWARE. --> - + {% import "partials/language/" + config.theme.language + ".html" as lang %} - - {% import "partials/language/en.html" as fallback %}