Skip to content

Commit

Permalink
Update themes/article/app/utils/loaders.server.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanc1 authored Oct 24, 2024
1 parent c2d115a commit 2cb7e55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions themes/article/app/utils/loaders.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export async function getPage(
let slug = opts.loadIndexPage || opts.slug == null ? project.index : opts.slug;
let loader = await getStaticContent(projectName, slug).catch(() => null);
if (!loader) {
// If you haven't loaded the first time, try the `.index`
slug = `${slug}.index`;
loader = await getStaticContent(projectName, slug).catch(() => null);
if (!loader) throw responseNoArticle();
Expand Down

0 comments on commit 2cb7e55

Please sign in to comment.