Skip to content

Commit

Permalink
Update default.html
Browse files Browse the repository at this point in the history
Added ability to load internal / external javascript
  • Loading branch information
madhugopinathan authored Aug 22, 2016
1 parent c97eb86 commit 030ec36
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,7 @@
{% endfor %}
{% endif %}

{% if page.external_js %}
{% for src_file in page.external_js %}
<script src="{{ src_file }}" type="text/javascript"></script>
{% endfor %}
{% endif %}

{% if page.internal_js %}
{% for js_file in page.internal_js %}
<script src="/javascripts/{{ jsfile }}.js" type="text/javascript"></script>
{% endfor %}
{% endif %}
</head>
<body>
<nav>
Expand All @@ -42,5 +32,17 @@
<li><a href="https://github.com/madhugopinathan">github.com/madhugopinathan</a></li>
</ul>
</footer>

{% if page.external_js %}
{% for src_file in page.external_js %}
<script src="{{ src_file }}" type="text/javascript"></script>
{% endfor %}
{% endif %}

{% if page.internal_js %}
{% for js_file in page.internal_js %}
<script src="/javascripts/{{ jsfile }}.js" type="text/javascript"></script>
{% endfor %}
{% endif %}
</body>
</html>

0 comments on commit 030ec36

Please sign in to comment.