Skip to content

Commit

Permalink
Merge pull request waschinski#66 from nicosomb/load-toastify-if-neces…
Browse files Browse the repository at this point in the history
…sary

Added condition to load Toastify library only if enabled
  • Loading branch information
boerniee committed Mar 10, 2023
2 parents 5e496ee + bf03fca commit c2ab65f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
<meta name="description" content="{{ site.env.DESCRIPTION }}">
<script type="text/javascript" src="{{ '/js/lazy-loading.js' | relative_url }}"></script>
<link rel="stylesheet" type="text/css" media="screen" href="{{ '/css/master.css' | relative_url }}" />
{% if site.env.ALLOW_IMAGE_SHARING == "1" %}
<link rel="stylesheet" type="text/css" href="{{ '/css/toastify.min.css' | relative_url }}">
{% endif %}
<link rel="shortcut icon" type="image/svg+xml" href="{{ '/favicon.svg' | relative_url }}" />
<link rel="shortcut icon" type="image/png" href="{{ '/favicon.png' | relative_url }}" />
<link rel="apple-touch-icon" href="touch-icon-iphone.png" />
Expand Down
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@
{% endif %}
</ul>
{% include javascript.html %}
{% if site.env.ALLOW_IMAGE_SHARING == "1" %}
<script type="text/javascript" src="{{ '/js/toastify.js' | relative_url }}"></script>
{% endif %}
{% if page.image_slug %}
<script src="{{ '/js/photos.js' | relative_url }}" data-photo-id="{{ page.image_slug }}" data-photo-url="{{ page.image_slug | relative_url }}" data-target-id="{{ target }}"></script>
{% endif %}
</body>
</html>
</html>

0 comments on commit c2ab65f

Please sign in to comment.