diff --git a/src/nuxt.config.js b/src/nuxt.config.js index 4720f49fa1..6dc7527023 100644 --- a/src/nuxt.config.js +++ b/src/nuxt.config.js @@ -164,16 +164,19 @@ const nuxtConfig = { ], brand: [ { + '@context': 'http://www.schema.org', '@type': 'Brand', url: 'https://liker.land/about/writing-nft', name: 'Writing NFT', }, { + '@context': 'http://www.schema.org', '@type': 'Brand', url: 'https://liker.land/about/nft-book', name: 'NFT Book', }, { + '@context': 'http://www.schema.org', '@type': 'Brand', url: 'https://liker.land/civic', name: 'Civic Liker', @@ -188,42 +191,7 @@ const nuxtConfig = { operatingSystem: 'All', url: 'https://liker.land', offers: { - '@type': 'Offer', - price: '0', - priceCurrency: 'USD', - }, - }, - { - '@context': 'http://www.schema.org', - '@type': 'MobileApplication', - name: 'Liker Land', - applicationCategory: 'LifestyleApplication', - operatingSystem: 'IOS', - url: 'https://apps.apple.com/app/liker-land/id1248232355', - aggregateRating: { - '@type': 'AggregateRating', - ratingValue: '4.3', - ratingCount: '16', - }, - offers: { - '@type': 'Offer', - price: '0', - priceCurrency: 'USD', - }, - }, - { - '@context': 'http://www.schema.org', - '@type': 'MobileApplication', - name: 'Liker Land', - applicationCategory: 'LifestyleApplication', - operatingSystem: 'ANDROID', - url: 'https://play.google.com/store/apps/details?id=com.oice', - aggregateRating: { - '@type': 'AggregateRating', - ratingValue: '3.8', - ratingCount: '1699', - }, - offers: { + '@context': 'http://www.schema.org', '@type': 'Offer', price: '0', priceCurrency: 'USD', diff --git a/src/pages/about/writing-nft.vue b/src/pages/about/writing-nft.vue index 8906145dcd..d60e7082a8 100644 --- a/src/pages/about/writing-nft.vue +++ b/src/pages/about/writing-nft.vue @@ -50,15 +50,18 @@ export default { '@context': 'http://www.schema.org', '@type': 'FAQPage', about: { + '@context': 'http://www.schema.org', '@type': 'Brand', url: `${EXTERNAL_HOST}/about/writing-nft`, name: 'Writing NFT', }, mainEntity: this.$t('faq_list').map( ({ q: question, a: answer }) => ({ + '@context': 'http://www.schema.org', '@type': 'Question', name: question, acceptedAnswer: { + '@context': 'http://www.schema.org', '@type': 'Answer', text: answer, }, diff --git a/src/pages/civic/index.vue b/src/pages/civic/index.vue index 6d27f47f09..f8d245ebb7 100644 --- a/src/pages/civic/index.vue +++ b/src/pages/civic/index.vue @@ -71,12 +71,14 @@ export default { image: [ogImage], description, brand: { + '@context': 'http://www.schema.org', '@type': 'Brand', url: `${EXTERNAL_HOST}/civic`, name: 'Civic Liker', }, url: `${EXTERNAL_HOST}${this.$route.path}`, offers: { + '@context': 'http://www.schema.org', '@type': 'Offer', price: '0', priceCurrency: 'USD', diff --git a/src/pages/index.vue b/src/pages/index.vue index ae69138a1c..5e27c93fd4 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -847,9 +847,11 @@ export default { '@context': 'https://schema.org', '@type': 'FAQPage', mainEntity: this.faqs.map(({ question, answer }) => ({ + '@context': 'http://www.schema.org', '@type': 'Question', name: question, acceptedAnswer: { + '@context': 'http://www.schema.org', '@type': 'Answer', text: answer, }, diff --git a/src/pages/nft/class/_classId/_nftId.vue b/src/pages/nft/class/_classId/_nftId.vue index 2972524154..30d1841c58 100644 --- a/src/pages/nft/class/_classId/_nftId.vue +++ b/src/pages/nft/class/_classId/_nftId.vue @@ -451,6 +451,7 @@ export default { name: title, encoding: [ { + '@context': 'http://www.schema.org', '@type': 'MediaObject', contentUrl: this.nftModelURL, encodingFormat: 'model/gltf-json', @@ -461,12 +462,14 @@ export default { let brand; if (this.isWritingNft) { brand = { + '@context': 'http://www.schema.org', '@type': 'Brand', url: `${EXTERNAL_HOST}/about/writing-nft`, name: 'Writing NFT', }; } else if (this.nftIsNFTBook) { brand = { + '@context': 'http://www.schema.org', '@type': 'Brand', url: `${EXTERNAL_HOST}/about/nft-book`, name: 'NFT Book', diff --git a/src/pages/nft/class/_classId/index.vue b/src/pages/nft/class/_classId/index.vue index 817fc5367d..23241f4548 100644 --- a/src/pages/nft/class/_classId/index.vue +++ b/src/pages/nft/class/_classId/index.vue @@ -538,6 +538,7 @@ export default { name: title, encoding: [ { + '@context': 'http://www.schema.org', '@type': 'MediaObject', contentUrl: this.nftModelURL, encodingFormat: 'model/gltf-json', @@ -556,6 +557,7 @@ export default { image: [ogImage], description, brand: { + '@context': 'http://www.schema.org', '@type': 'Brand', url: `${EXTERNAL_HOST}/about/writing-nft`, name: 'Writing NFT', @@ -566,6 +568,7 @@ export default { datePublished: this.iscnData?.recordTimestamp, url: `${EXTERNAL_HOST}${this.$route.path}`, offers: { + '@context': 'http://www.schema.org', '@type': 'Offer', seller: iscnOwnerPerson, price: NFTPriceUSD, @@ -588,6 +591,7 @@ export default { image: [ogImage], description, brand: { + '@context': 'http://www.schema.org', '@type': 'Brand', url: 'https://liker.land/about/nft-book', name: 'NFT Book', @@ -605,6 +609,7 @@ export default { }; this.nftEditions.forEach(e => { schemas.push({ + '@context': 'http://www.schema.org', '@type': ['Book', 'Product'], '@id': `@${this.classId}-${e.index}`, name: `${title} - ${e.name}`, @@ -617,11 +622,13 @@ export default { bookEdition: e.name, description: e.description, brand: { + '@context': 'http://www.schema.org', '@type': 'Brand', url: 'https://liker.land/about/nft-book', name: 'NFT Book', }, offers: { + '@context': 'http://www.schema.org', '@type': 'Offer', seller: iscnOwnerPerson, price: e.price, diff --git a/src/pages/nft/collection/_collectionId/index.vue b/src/pages/nft/collection/_collectionId/index.vue index e87d7ed603..06225a54ff 100644 --- a/src/pages/nft/collection/_collectionId/index.vue +++ b/src/pages/nft/collection/_collectionId/index.vue @@ -189,8 +189,10 @@ export default { iscn_owner: iscnOwner, } = this.getNFTClassMetadataById(id); return { + '@context': 'http://www.schema.org', '@type': 'TypeAndQuantityNode', - typeOfQuantity: { + typeOfGood: { + '@context': 'http://www.schema.org', '@type': this.collectionIsBook ? 'Book' : 'CreativeWork', name: className, description: classDescription, @@ -206,21 +208,24 @@ export default { : undefined, brand: this.collectionIsBook ? { + '@context': 'http://www.schema.org', '@type': 'Brand', url: `${EXTERNAL_HOST}/about/nft-book`, name: 'NFT Book', } : { + '@context': 'http://www.schema.org', '@type': 'Brand', url: `${EXTERNAL_HOST}/about/writing-nft`, name: 'Writing NFT', }, }, - amountOfThisQuantity: '1', + amountOfThisGood: '1', unitCode: 'C62', }; }), offers: { + '@context': 'http://www.schema.org', '@type': 'Offer', price: this.collectionPrice, priceCurrency: 'USD',