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 4, 2023
1 parent 9f087a3 commit b09a7fe
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 b09a7fe

Please sign in to comment.