Skip to content

Commit

Permalink
remove leftover base path demo code (#1179)
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Nov 9, 2023
1 parent 29cd2e4 commit 9ab53bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
const params = path.split('/').filter(param => param !== "");
const filePath = params.length <= 1 ? `${params[0]}/index.md` : `${params.join("/")}.md`

document.getElementsByTagName('app-shelf')[0].setAttribute('page', params[1]);
document.getElementsByTagName('app-shelf')[0].setAttribute('page', params[0]);
editButton.href = `https://github.com/ProjectEvergreen/greenwood/tree/master/www/pages/${filePath}`
}
</script>
Expand Down

0 comments on commit 9ab53bf

Please sign in to comment.