Several minor improvements to typing and misc.
- Improved schema validation - Move username parsing and other validators to schema types - Fix astro check command - Add JSON/YAML schema validation for data collections - Update licenses - Remove deployment script in favor of rsync - Prevent unsanitized input in export-story script - Change "eng" language to "en", per BCP47 - Clean up i18n keys and add aria attributes - Improve MastodonComments behavior on no-JS browsers
This commit is contained in:
parent
fe908a4989
commit
7bb8a952ef
54 changed files with 1005 additions and 962 deletions
|
|
@ -18,17 +18,6 @@ export const getStaticPaths: GetStaticPaths = async () => {
|
|||
};
|
||||
|
||||
const game = Astro.props;
|
||||
if (!game.data.isDraft) {
|
||||
if (!game.data.pubDate) {
|
||||
throw new Error(`Missing "pubDate" for published game ${game.data.title} ("${game.slug}")`);
|
||||
}
|
||||
if (!game.data.thumbnail) {
|
||||
throw new Error(`Missing "thumbnail" for published game ${game.data.title} ("${game.slug}")`);
|
||||
}
|
||||
if (game.data.tags.length == 0) {
|
||||
throw new Error(`Missing "tags" for published game ${game.data.title} ("${game.slug}")`);
|
||||
}
|
||||
}
|
||||
const { Content } = await game.render();
|
||||
---
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue