mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-05-23 05:46:33 +02:00
Port to TypeScript
This commit is contained in:
parent
01d3014e2f
commit
bc429f5d69
32 changed files with 419 additions and 105 deletions
|
@ -12,7 +12,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
|
|||
activity.start();
|
||||
activity.setStatus("Sourcing data for pages...");
|
||||
|
||||
const projectTemplate = path.resolve(`src/templates/project.js`);
|
||||
const projectTemplate = path.resolve(`src/templates/project.tsx`);
|
||||
|
||||
const result = await graphql(`
|
||||
query AllPagesQuery {
|
||||
|
@ -78,9 +78,9 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
|
|||
activity.setStatus("Generating blog pages...");
|
||||
|
||||
const blogListingTemplate = path.resolve(
|
||||
`src/templates/blogListing.js`
|
||||
`src/templates/blogListing.tsx`
|
||||
);
|
||||
const blogTemplate = path.resolve(`src/templates/blogPost.js`);
|
||||
const blogTemplate = path.resolve(`src/templates/blogPost.tsx`);
|
||||
|
||||
reporter.info("Creating blog listings...");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue