feat(SW-200): refactoring SEO metadata handling and added functionality for static pages

This commit is contained in:
Erik Tiekstra
2024-11-14 07:22:38 +01:00
parent 92ad7192b1
commit 28738d7161
17 changed files with 278 additions and 217 deletions

View File

@@ -1,7 +1,7 @@
#import "../../Fragments/Image.graphql"
#import "../../Fragments/System.graphql"
query GetMyPagesMetaData($locale: String!, $uid: String!) {
query GetAccountPageMetaData($locale: String!, $uid: String!) {
account_page(locale: $locale, uid: $uid) {
system {
...System

View File

@@ -0,0 +1,30 @@
#import "../../Fragments/Image.graphql"
#import "../../Fragments/System.graphql"
query GetCollectionPageMetaData($locale: String!, $uid: String!) {
collection_page(locale: $locale, uid: $uid) {
header {
heading
preamble
}
system {
...System
}
web {
breadcrumbs {
title
}
seo_metadata {
description
title
imageConnection {
edges {
node {
...Image
}
}
}
}
}
}
}

View File

@@ -0,0 +1,30 @@
#import "../../Fragments/Image.graphql"
#import "../../Fragments/System.graphql"
query GetContentPageMetaData($locale: String!, $uid: String!) {
content_page(locale: $locale, uid: $uid) {
header {
heading
preamble
}
system {
...System
}
web {
breadcrumbs {
title
}
seo_metadata {
description
title
imageConnection {
edges {
node {
...Image
}
}
}
}
}
}
}

View File

@@ -3,6 +3,8 @@
query GetLoyaltyPageMetaData($locale: String!, $uid: String!) {
loyalty_page(locale: $locale, uid: $uid) {
heading
preamble
system {
...System
}