From df5ebaf6227145cc58c5dc643297d9e608bd260a Mon Sep 17 00:00:00 2001 From: tobes Date: Thu, 20 Sep 2012 10:12:02 +0100 Subject: [PATCH] Move styles into blocks in base.html template --- ckan/templates/base.html | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/ckan/templates/base.html b/ckan/templates/base.html index 9073de45052..537bc07d4b9 100644 --- a/ckan/templates/base.html +++ b/ckan/templates/base.html @@ -10,7 +10,6 @@ {%- endblock -%} -{% resource g.main_css[6:] %} {# Allows custom attributes to be added to the tag #} {# @@ -70,17 +69,21 @@ {% endblock %} #} {%- block styles %} + {% resource g.main_css[6:] %} {% endblock %} {# defined in the config.ini under "ckan.template_head_end" #} {% block head_extras %} {{ config.get('ckan.template_head_end', '') | safe }} {% endblock %} - {%- if g.site_custom_css -%} - - {%- endif %} + + {%- block custom_styles %} + {%- if g.site_custom_css -%} + + {%- endif %} + {% endblock %} {# Allows custom attributes to be added to the tag #}