From 3956ed77e11455a963ce17a64783d70fa666a7a0 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 24 Dec 2021 15:13:19 +0100 Subject: chore: replace homepage content with MDX content I cannot import custom blocks through WP GraphQL, so I prefer to use MDX file. This way I cannot import custom components. --- src/services/graphql/queries.ts | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/services/graphql/queries.ts') diff --git a/src/services/graphql/queries.ts b/src/services/graphql/queries.ts index 652caa1..518cf75 100644 --- a/src/services/graphql/queries.ts +++ b/src/services/graphql/queries.ts @@ -1,7 +1,6 @@ import { Slug } from '@ts/types/app'; import { Article, PostBy } from '@ts/types/articles'; import { AllPostsSlug, PostsList, RawPostsList } from '@ts/types/blog'; -import { HomePage, HomePageBy } from '@ts/types/homepage'; import { Page, PageBy } from '@ts/types/pages'; import { AllSubjectsSlug, @@ -238,24 +237,6 @@ export const getPostBySlug = async (slug: string): Promise
=> { // Pages query //============================================================================== -export const getHomePage = async (): Promise => { - const query = gql` - query HomePage { - nodeByUri(uri: "/") { - ... on Page { - id - content - } - } - } - `; - - const response = await fetchApi(query, null); - const homepage = response.nodeByUri; - - return homepage; -}; - export const getPageByUri = async (slug: string): Promise => { const query = gql` query PageByUri($slug: String!) { -- cgit v1.2.3