Skip to content

Commit

Permalink
Fix paths to additional CSS and JavaScript files
Browse files Browse the repository at this point in the history
Expressions in an `#each` block need to begin with "../" to reference
values in the main context.
  • Loading branch information
wirelyre committed Sep 1, 2018
1 parent a0e7b19 commit 65198a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/theme/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<!-- Custom theme stylesheets -->
{{#each additional_css}}
<link rel="stylesheet" href="{{ this }}">
<link rel="stylesheet" href="{{ ../path_to_root }}{{ this }}">
{{/each}}

{{#if mathjax_support}}
Expand Down Expand Up @@ -235,7 +235,7 @@

<!-- Custom JS scripts -->
{{#each additional_js}}
<script type="text/javascript" src="{{ path_to_root }}{{this}}"></script>
<script type="text/javascript" src="{{ ../path_to_root }}{{this}}"></script>
{{/each}}

{{#if is_print}}
Expand Down

0 comments on commit 65198a7

Please sign in to comment.