Skip to content

Commit

Permalink
Move styles into blocks in base.html template
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Sep 20, 2012
1 parent 5e95ee7 commit df5ebaf
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions ckan/templates/base.html
Expand Up @@ -10,7 +10,6 @@
<!--[if gt IE 8]><!--> <html lang="{{ lang }}"> <!--<![endif]-->
{%- endblock -%}

{% resource g.main_css[6:] %}
{# Allows custom attributes to be added to the <head> tag #}
<head{% block headtag %}{% endblock %}>
{#
Expand Down Expand Up @@ -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 -%}
<style>
{{ g.site_custom_css | safe }}
</style>
{%- endif %}

{%- block custom_styles %}
{%- if g.site_custom_css -%}
<style>
{{ g.site_custom_css | safe }}
</style>
{%- endif %}
{% endblock %}
</head>

{# Allows custom attributes to be added to the <body> tag #}
Expand Down

0 comments on commit df5ebaf

Please sign in to comment.