Skip to content

Commit

Permalink
dont error when mod has no about.md
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool committed Jan 19, 2024
1 parent e2a01b3 commit eeddb93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-mods-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const mods = readdirSync('_mods_tmp', { withFileTypes: true })
};
})
.sort((a, b) => rcompare(a.version, b.version)),
about: tryReadFile(`${d}/about.md`)?.toString(),
about: tryReadFile(`${d}/about.md`)?.toString() ?? "No description provided",
// logo: tryReadFile(`${d}/logo.png`, 'media/no-logo.png'),
logoURL: existsSync(`${d}/logo.png`) ?
`https://raw.githubusercontent.com/geode-sdk/mods/main/mods-v2/${dir.name}/logo.png` :
Expand Down

0 comments on commit eeddb93

Please sign in to comment.