Skip to content

Commit

Permalink
replace repoName with baseURL in index and chapter pages
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroCamphuijsen committed May 30, 2024
1 parent 9cfe128 commit 90f91b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
:key="modObject.id"
:title="modObject.title"
:author="modObject.author"
:thumbnail="`/${config.repoName}${modObject._path}/media/${modObject.thumbnail}`"
:thumbnail="`/${config.baseURL}/${modObject._path}/media/${modObject.thumbnail}`"
:url="`${modObject._path}/info`"
/>
</ContentList>
Expand Down
2 changes: 1 addition & 1 deletion pages/modules/[module]/[chapter].vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
const chapterList = await queryContent('/modules/' + route.params.module + '/')
.sort({ order: 1, $numeric: true })
.find();
const baseUrl = "/" + runtimeConfig.public.repoName + "/";
const baseUrl = "/" + runtimeConfig.public.baseURL + "/";
</script>

0 comments on commit 90f91b7

Please sign in to comment.