Skip to content

Commit 75c57d1

Browse files
committed
Simplified the post JS file.
1 parent 032f5c7 commit 75c57d1

File tree

5 files changed

+5
-22
lines changed

5 files changed

+5
-22
lines changed

_includes/js-selector.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@
1212

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

15-
{% if site.toc and page.toc %}
16-
<script src="{{ '/assets/js/post-toc.min.js' | relative_url }}" async></script>
17-
{% else %}
18-
<script src="{{ '/assets/js/post.min.js' | relative_url }}" async></script>
19-
{% endif %}
15+
<script src="{{ '/assets/js/post.min.js' | relative_url }}" async></script>
2016

2117
{% if page.math %}
2218
<!-- MathJax -->
File renamed without changes.

assets/js/data/cache-list.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const include = [
2626
'{{ "/assets/js/home.min.js" | relative_url }}',
2727
'{{ "/assets/js/page.min.js" | relative_url }}',
2828
'{{ "/assets/js/post.min.js" | relative_url }}',
29-
'{{ "/assets/js/post-toc.min.js" | relative_url }}',
3029

3130
/*--- HTML ---*/
3231

assets/js/post-toc.min.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

assets/js/post.min.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ layout: compress
99
---
1010

1111
{% include_relative _home-post.js %}
12+
13+
{% include_relative lib/_bootstrap-toc.min.js %}
14+
15+
{% include_relative _utils/toc-filter.js %}

0 commit comments

Comments
 (0)