diff --git a/js/main.js b/js/main.js index c4da36d..7d65cb3 100644 --- a/js/main.js +++ b/js/main.js @@ -48,6 +48,9 @@ function setPage(path){ path = "/home"; } + window.scrollTo(0, 0); + $("#article-container").empty(); + $.ajax("/pages"+path+".md") .done((res) => { $("#article-container").html(res);