Skip to content

Commit

Permalink
fix: template {{ file_name }} error in HTML wrapper (#1380)
Browse files Browse the repository at this point in the history
* Update javascript.html

* Update style.html
  • Loading branch information
jogecodes authored Sep 20, 2023
1 parent 829acf5 commit fdc0346
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
{% include 'wrapper/assets/script.js' %}
</script>
{% else %}
<script src="{{ file_name }}_assets/js/jquery-1.12.4.min.js"></script>
<script src="{{ file_name }}_assets/js/bootstrap.min.js"></script>
<script src="{{ file_name }}_assets/js/script.js"></script>
<script src="{{ assets_prefix }}/js/jquery-1.12.4.min.js"></script>
<script src="{{ assets_prefix }}/js/bootstrap.min.js"></script>
<script src="{{ assets_prefix }}/js/script.js"></script>
{% endif %}
{% else %}
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script>
{% include 'wrapper/assets/script.js' %}
</script>
{% endif %}
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
{% else %}
{% if theme is not none %}
{% if theme.value == 'flatly' %}
<link href="{{ file_name }}_assets/css/flatly.bootstrap.min.css" rel="stylesheet" />
<link href="{{ assets_prefix }}/css/flatly.bootstrap.min.css" rel="stylesheet" />
{% elif theme.value == 'united' %}
<link href="{{ file_name }}_assets/css/united.bootstrap.min.css" rel="stylesheet" />
<link href="{{ assets_prefix }}/css/united.bootstrap.min.css" rel="stylesheet" />
{% elif theme.value == 'simplex' %}
<link href="{{ file_name }}_assets/css/simplex.bootstrap.min.css" rel="stylesheet" />
<link href="{{ assets_prefix }}/css/simplex.bootstrap.min.css" rel="stylesheet" />
{% elif theme.value == 'cosmo' %}
<link href="{{ file_name }}_assets/css/cosmo.bootstrap.min.css" rel="stylesheet" />
<link href="{{ assets_prefix }}/css/cosmo.bootstrap.min.css" rel="stylesheet" />
{% endif %}
{% else %}
<link rel="stylesheet" href="{{ file_name }}_assets/css/bootstrap.min.css" />
<link rel="stylesheet" href="{{ file_name }}_assets/css/bootstrap-theme.min.css" />
<link rel="stylesheet" href="{{ assets_prefix }}/css/bootstrap.min.css" />
<link rel="stylesheet" href="{{ assets_prefix }}/css/bootstrap-theme.min.css" />
{% endif %}
{% endif %}
{% else %}
Expand All @@ -52,5 +52,5 @@
{%- if inline -%}
<style>{% include 'wrapper/assets/style.css' %}</style>
{% else %}
<link rel="stylesheet" href="{{ file_name }}_assets/css/style.css" />
{% endif %}
<link rel="stylesheet" href="{{ assets_prefix }}/css/style.css" />
{% endif %}

0 comments on commit fdc0346

Please sign in to comment.