Skip to content
Browse files

Fix reference to page scripts/styles

  • Loading branch information...
1 parent 4b61291 commit fd9a1dcbec7f6b172aba9dc77da995022d1d7147 @gordonbrander committed Apr 15, 2014
Showing with 9 additions and 3 deletions.
  1. +3 −0 templates/article.html
  2. +2 −2 templates/base.html
  3. +4 −1 templates/cinematic.html
View
3 templates/article.html
@@ -4,6 +4,9 @@
<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
4 templates/base.html
@@ -16,7 +16,7 @@
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="/vendor/normalize.css">
- {% for url in page.styles %}
+ {% for url in page.metadata.styles %}
<link rel="stylesheet" href="{{ url }}">
{% endfor %}
{% endblock %}
@@ -30,7 +30,7 @@
{% block footer %}
{% endblock %}
{% block scripts %}
- {% for url in page.scripts %}
+ {% for url in page.metadata.scripts %}
<script type="text/javascript" src="{{ url }}"></script>
{% endfor %}
{% endblock %}
View
5 templates/cinematic.html
@@ -4,10 +4,13 @@
<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 %}
<div class="in section">
- <div class="col-05">{{ typogr(page.html).typogrify() | safe }}</div>
+ <div class="col-06">{{ typogr(page.html).typogrify() | safe }}</div>
</div>
{% endblock %}

0 comments on commit fd9a1dc

Please sign in to comment.
Something went wrong with that request. Please try again.