Skip to content

Commit

Permalink
Add extra_js block to base theme
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Aug 5, 2015
1 parent 32845cd commit 5d22c2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion nikola/data/themes/base-jinja/templates/base.tmpl
Expand Up @@ -19,8 +19,9 @@
</main>
{{ footer.html_footer() }}
</div>
{{ base.late_load_js() }}
{% block extra_js %}{% endblock %}
{{ body_end }}
{{ template_hooks['body_end']() }}
{{ base.late_load_js() }}
</body>
</html>
3 changes: 2 additions & 1 deletion nikola/data/themes/base/templates/base.tmpl
Expand Up @@ -19,8 +19,9 @@ ${template_hooks['extra_head']()}
</main>
${footer.html_footer()}
</div>
${base.late_load_js()}
<%block name="extra_js"></%block>
${body_end}
${template_hooks['body_end']()}
${base.late_load_js()}
</body>
</html>

0 comments on commit 5d22c2b

Please sign in to comment.