Skip to content

Commit

Permalink
Not scrolling to top when changing pages
Browse files Browse the repository at this point in the history
  • Loading branch information
liang2kl committed Sep 8, 2021
1 parent e2f4833 commit 533c2af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions mkdocs_blogging_plugin/templates/pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ if (pagination) {
);
}
this.className += " active";

const offset = window.pageYOffset || document.documentElement.scrollTop
if (offset > 300) {
setTimeout(() => window.scrollTo({ top: 0, behavior: "smooth" }), 50)
}
});
}
links[currentPage].className += " active"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setup(
name="mkdocs-blogging-plugin",
version="0.1.1",
version="0.1.2",
description="Mkdocs plugin that generates a blog index page sorted by creation date.",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 533c2af

Please sign in to comment.