Skip to content

Commit fb0184f

Browse files
author
saowang
committed
v2.0.4 fixed toc icon
1 parent 2403480 commit fb0184f

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

_includes/reset/version.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{%- assign version = "2.0.3" -%}
1+
{%- assign version = "2.0.4" -%}

assets/js/theme.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,18 @@ $(".status").click(function () {
240240
$(".addons").toggleClass("d-none");
241241
});
242242

243+
if (location.pathname == `${ui.baseurl}/search.html`) {
244+
$.ajax(`${ui.baseurl}/pages.json`)
245+
.done(search)
246+
.fail((xhr, message) => debug(message));
247+
}
248+
249+
toc();
250+
initialize(location.pathname);
251+
initialize(location.hash);
252+
restore();
253+
highlight();
254+
243255
/* nested ul */
244256
$(".toc ul")
245257
.siblings("a")
@@ -255,18 +267,6 @@ $(".toc ul")
255267
link.prepend(expand);
256268
});
257269

258-
if (location.pathname == `${ui.baseurl}/search.html`) {
259-
$.ajax(`${ui.baseurl}/pages.json`)
260-
.done(search)
261-
.fail((xhr, message) => debug(message));
262-
}
263-
264-
toc();
265-
initialize(location.pathname);
266-
initialize(location.hash);
267-
restore();
268-
highlight();
269-
270270
if ("serviceWorker" in navigator) {
271271
navigator.serviceWorker.register(`${ui.baseurl}/sw.caches.js`);
272272
} else {

assets/js/theme.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jekyll-rtd-theme.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |spec|
22
spec.name = "jekyll-rtd-theme"
3-
spec.version = "2.0.3"
3+
spec.version = "2.0.4"
44
spec.authors = ["saowang"]
55
spec.email = ["saowang@outlook.com"]
66

0 commit comments

Comments
 (0)