Skip to content

Commit

Permalink
[Fix] 404 pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-shoja committed Feb 24, 2024
1 parent 44a92fc commit 352ba18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const pages = [
document.title = data.name;

pages.forEach(({ name, id }) => {
fetch(`/pages/${name}.html`)
fetch(`../../pages/${name}.html`)
.then((response) => response.text())
.then((template) => {
document.getElementById(id).innerHTML = ejs.render(template, data);
Expand Down

0 comments on commit 352ba18

Please sign in to comment.