diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-12-24 15:13:19 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-12-24 15:13:19 +0100 |
| commit | 3956ed77e11455a963ce17a64783d70fa666a7a0 (patch) | |
| tree | 15eadb57f8f68fd7a5c56fc2b7cdeb17d21b7ab2 /src/services | |
| parent | 8105e2577d4aa401f960e78085f6038eb879ee8a (diff) | |
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.
Diffstat (limited to 'src/services')
| -rw-r--r-- | src/services/graphql/queries.ts | 19 |
1 files changed, 0 insertions, 19 deletions
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<Article> => { // Pages query //============================================================================== -export const getHomePage = async (): Promise<HomePage> => { - const query = gql` - query HomePage { - nodeByUri(uri: "/") { - ... on Page { - id - content - } - } - } - `; - - const response = await fetchApi<HomePageBy>(query, null); - const homepage = response.nodeByUri; - - return homepage; -}; - export const getPageByUri = async (slug: string): Promise<Page> => { const query = gql` query PageByUri($slug: String!) { |
