Permalink
Browse files

Article styles now in styles_extra block

  • Loading branch information...
1 parent 23664dc commit f45ae76021542e7dd9daea7c20906d87e6d77bcb @gordonbrander committed Apr 15, 2014
Showing with 10 additions and 9 deletions.
  1. +0 −3 templates/article.html
  2. +10 −6 templates/base.html
View
3 templates/article.html
@@ -4,9 +4,6 @@
<link rel="stylesheet" href="/vendor/normalize.css">
<link rel="stylesheet" href="/assets/col.css">
<link rel="stylesheet" href="/assets/site.css">
- {% for url in page.metadata.styles %}
- <link rel="stylesheet" href="{{ url }}">
- {% endfor %}
{% endblock %}
{% block main %}
View
16 templates/base.html
@@ -17,9 +17,11 @@
{% block styles %}
<link rel="stylesheet" href="/vendor/normalize.css">
{% endblock %}
- {% for url in page.metadata.styles %}
- <link rel="stylesheet" href="{{ url }}">
- {% endfor %}
+ {% block styles_extra %}
+ {% for url in page.metadata.styles %}
+ <link rel="stylesheet" href="{{ url }}">
+ {% endfor %}
+ {% endblock %}
</head>
<body>
{% block header %}
@@ -31,8 +33,10 @@
{% endblock %}
{% block scripts %}
{% endblock %}
- {% for url in page.metadata.scripts %}
- <script type="text/javascript" src="{{ url }}"></script>
- {% endfor %}
+ {% block scripts_extra %}
+ {% for url in page.metadata.scripts %}
+ <script type="text/javascript" src="{{ url }}"></script>
+ {% endfor %}
+ {% endblock %}
</body>
</html>

0 comments on commit f45ae76

Please sign in to comment.