Skip to content

Commit

Permalink
Remove strings that never match
Browse files Browse the repository at this point in the history
  • Loading branch information
Lotes committed May 29, 2024
1 parent 855acc3 commit fe405e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/check-links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async function readMarkdownFiles() {
documentLink = relative(contentDir, resolve(mdFile, '..', slug));
} else {
const base = basename(mdFile, '.md');
if (["index.md", "_index.md", '_index'].includes(base)) {
if (['index', '_index'].includes(base)) {
documentLink = relative(contentDir, resolve(mdFile, '..'));
} else {
documentLink = relative(contentDir, resolve(mdFile, '..', base));
Expand Down

0 comments on commit fe405e1

Please sign in to comment.