Commit 16301054 authored by Kenton Varda's avatar Kenton Varda

Fix site javascript for /next.

parent 4a06e298
......@@ -79,7 +79,13 @@ function initSidebar() {
}
function setupSidebar() {
var isNews = document.location.pathname.slice(0, 6) == "/news/";
var filename = document.location.pathname;
if (filename.slice(0, 5) == "/next") {
filename = filename.slice(5);
}
var isNews = filename.slice(0, 6) == "/news/";
var toc = initSidebar();
if (toc) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment