diff --git a/alchemy/templates/base.html b/alchemy/templates/base.html index ba8b07a..681f92e 100644 --- a/alchemy/templates/base.html +++ b/alchemy/templates/base.html @@ -1,3 +1,12 @@ +{%- macro url(destination) -%} +{%- if destination|lower|truncate(4, True, '') == 'http' or not destination -%} +{{ destination }} +{%- elif destination|first == '/' -%} +{{ SITEURL + destination }} +{%- else -%} +{{ SITEURL + '/' + destination }} +{%- endif -%} +{%- endmacro -%} @@ -17,16 +26,12 @@ {% endif %} - + {% for stylesheet in THEME_CSS_OVERRIDES or () %} - {% if stylesheet|lower|truncate(4, True, '') == 'http' %} - - {% else %} - - {% endif %} + {% endfor %} {% include 'include/xml_feeds.html' %}