Skip to content

Commit

Permalink
Simplified the post JS file.
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed Jun 1, 2020
1 parent 032f5c7 commit 75c57d1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 22 deletions.
6 changes: 1 addition & 5 deletions _includes/js-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@

{% elsif page.layout == 'post' %}

{% if site.toc and page.toc %}
<script src="{{ '/assets/js/post-toc.min.js' | relative_url }}" async></script>
{% else %}
<script src="{{ '/assets/js/post.min.js' | relative_url }}" async></script>
{% endif %}
<script src="{{ '/assets/js/post.min.js' | relative_url }}" async></script>

{% if page.math %}
<!-- MathJax -->
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion assets/js/data/cache-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const include = [
'{{ "/assets/js/home.min.js" | relative_url }}',
'{{ "/assets/js/page.min.js" | relative_url }}',
'{{ "/assets/js/post.min.js" | relative_url }}',
'{{ "/assets/js/post-toc.min.js" | relative_url }}',

/*--- HTML ---*/

Expand Down
16 changes: 0 additions & 16 deletions assets/js/post-toc.min.js

This file was deleted.

4 changes: 4 additions & 0 deletions assets/js/post.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ layout: compress
---

{% include_relative _home-post.js %}

{% include_relative lib/_bootstrap-toc.min.js %}

{% include_relative _utils/toc-filter.js %}

0 comments on commit 75c57d1

Please sign in to comment.