diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-12-24 15:35:33 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-12-24 15:37:26 +0100 |
| commit | 0bb6411ee9fce02c2e5680f2be5740a1bbb508ad (patch) | |
| tree | 59b574dbda693dc5f1b2605272a6eff3b23802f2 /src/services | |
| parent | 3956ed77e11455a963ce17a64783d70fa666a7a0 (diff) | |
chore: replace CV content with mdx content
Since I replace the other pages, there is no reason to fetch this page
content through WP GraphQL.
Diffstat (limited to 'src/services')
| -rw-r--r-- | src/services/graphql/queries.ts | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/services/graphql/queries.ts b/src/services/graphql/queries.ts index 518cf75..a40446e 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 { Page, PageBy } from '@ts/types/pages'; import { AllSubjectsSlug, AllThematicsSlug, @@ -11,7 +10,6 @@ import { ThematicBy, } from '@ts/types/taxonomies'; import { - getFormattedPage, getFormattedPost, getFormattedPostPreview, getFormattedSubject, @@ -234,32 +232,6 @@ export const getPostBySlug = async (slug: string): Promise<Article> => { }; //============================================================================== -// Pages query -//============================================================================== - -export const getPageByUri = async (slug: string): Promise<Page> => { - const query = gql` - query PageByUri($slug: String!) { - pageBy(uri: $slug) { - contentParts { - afterMore - beforeMore - } - date - modified - title - } - } - `; - - const variables = { slug }; - const response = await fetchApi<PageBy>(query, variables); - const page = getFormattedPage(response.pageBy); - - return page; -}; - -//============================================================================== // Subject query //============================================================================== |
