Simple homepage
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ for (const { from, to } of targets) {
|
||||
}
|
||||
|
||||
const pages = join(root, 'src/content/pages');
|
||||
for (const { slug } of examples) {
|
||||
for (const slug of ['home', ...examples.map(({ slug }) => slug)]) {
|
||||
if (!existsSync(join(pages, `${slug}.md`))) {
|
||||
throw new Error(`Missing ${join(pages, `${slug}.md`)}. Check the content checkout, or run npm run content:link -- <path>.`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user