-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added `alt` image attributes in the hero section * Changed the open graph image and the site URL for the SEO * Installed `gatsby-plugin-image` and derivative libraries * Moved the projects definition to a tsx file and added projects' logos
- Loading branch information
1 parent
a1fe24f
commit afc67b6
Showing
14 changed files
with
955 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { createPages } from "@lekoarts/gatsby-theme-cara/gatsby-node.mjs"; | ||
import { createRemoteFileNode } from "gatsby-source-filesystem"; | ||
import { GatsbyNode } from "gatsby"; | ||
|
||
export const createResolvers: GatsbyNode["createResolvers"] = ({ | ||
actions, | ||
cache, | ||
createNodeId, | ||
createResolvers, | ||
store, | ||
reporter, | ||
}) => { | ||
const { createNode } = actions; | ||
|
||
createResolvers({ | ||
Query: { | ||
remoteImage: { | ||
type: "File", | ||
args: { | ||
url: { | ||
type: "String", | ||
description: "URL of the image", | ||
}, | ||
}, | ||
resolve: async (_: any, { url }: { url: string }) => { | ||
return await createRemoteFileNode({ | ||
url, | ||
store, | ||
cache, | ||
createNode, | ||
createNodeId, | ||
reporter, | ||
}); | ||
}, | ||
}, | ||
}, | ||
}); | ||
}; |
Oops, something went wrong.