From d0912a26b293fb635c7b064ed8b10f1b98a0dfd5 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 12 Nov 2023 00:14:38 +0100 Subject: [PATCH] fix: Use correct rich results schemas --- src/lib/components/Meta.svelte | 19 ++--- src/routes/+page.svelte | 116 ++++++++++++++++++++++++--- src/routes/contributors/+page.svelte | 35 ++++---- src/routes/donate/+page.svelte | 32 ++++---- src/routes/download/+page.svelte | 44 +++++----- src/routes/patches/+page.svelte | 35 ++++---- static/{embed.png => logo.png} | Bin 7 files changed, 186 insertions(+), 95 deletions(-) rename static/{embed.png => logo.png} (100%) diff --git a/src/lib/components/Meta.svelte b/src/lib/components/Meta.svelte index a214c83..998cba0 100644 --- a/src/lib/components/Meta.svelte +++ b/src/lib/components/Meta.svelte @@ -1,7 +1,5 @@ @@ -27,15 +20,17 @@ - + - + - {#if schema} - + {#if schemas} + {#each schemas as schema} + + {/each} {/if} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index e77098e..31a0917 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -7,22 +7,114 @@ open-source patcher for Android apps. With ReVanced we continue the legacy of Vanced.' + } + }, + { + '@type': 'Question', + name: 'How to get ReVanced?', + acceptedAnswer: { + '@type': 'Answer', + text: 'You can follow ReVanced Manager documentation to use ReVanced Manager or the ReVanced CLI documentation to use ReVanced CLI.' + } + }, + { + '@type': 'Question', + name: 'How does it work?', + acceptedAnswer: { + '@type': 'Answer', + text: 'ReVanced uses a technique called patching. It patches your choice of an app and adds new features to it. Thanks to the modularity of ReVanced, you can choose any combination of features you want to use.' + } + }, + { + '@type': 'Question', + name: 'Does ReVanced support non-rooted devices?', + acceptedAnswer: { + '@type': 'Answer', + text: 'Yes! ReVanced supports non-root and rooted devices.' + } + }, + { + '@type': 'Question', + name: 'Is ReVanced affiliated with Vanced?', + acceptedAnswer: { + '@type': 'Answer', + text: 'ReVanced is not affiliated with Vanced.' + } + }, + { + '@type': 'Question', + name: 'How can I help?', + acceptedAnswer: { + '@type': 'Answer', + text: 'Since we are an open-source community and depend on outside help, you can always check out our GitHub repositories and contribute to ReVanced by creating an issue or pull requests.' + } + } + ] + }, + { + '@context': 'https://schema.org', + '@type': 'SoftwareApplication', + name: 'ReVanced Manager', + operatingSystem: 'ANDROID', + applicationCategory: 'UtilitiesApplication', + aggregateRating: { + '@type': 'AggregateRating', + ratingValue: '4.0', + ratingCount: '100' + }, + offers: { + '@type': 'Offer', + price: '0', + priceCurrency: 'USD' + } + }, + { + '@context': 'https://schema.org', + '@type': 'SoftwareApplication', + name: 'ReVanced CLI', + operatingSystem: 'All', + applicationCategory: 'UtilitiesApplication', + aggregateRating: { + '@type': 'AggregateRating', + ratingValue: '4.0', + ratingCount: '30' + }, + offers: { + '@type': 'Offer', + price: '0', + priceCurrency: 'USD' } } - }} + ]} />
diff --git a/src/routes/contributors/+page.svelte b/src/routes/contributors/+page.svelte index 699fd1d..fdf6fe3 100644 --- a/src/routes/contributors/+page.svelte +++ b/src/routes/contributors/+page.svelte @@ -14,23 +14,26 @@ Contributors', - publisher: { - '@type': 'Organization', - name: 'ReVanced', - url: 'https://revanced.app/', - logo: { - '@type': 'ImageObject', - url: 'https://revanced.app/embed.png' - } + schemas={[ + { + '@context': 'https://schema.org', + '@type': 'BreadcrumbList', + itemListElement: [ + { + '@type': 'ListItem', + position: 1, + name: 'Home', + item: 'https://revanced.app/' + }, + { + '@type': 'ListItem', + position: 2, + name: 'Contributors', + item: 'https://revanced.app/contributors' + } + ] } - }} + ]} />
diff --git a/src/routes/donate/+page.svelte b/src/routes/donate/+page.svelte index 4559628..8f3da60 100644 --- a/src/routes/donate/+page.svelte +++ b/src/routes/donate/+page.svelte @@ -41,20 +41,24 @@ Donate', - publisher: { - '@type': 'Organization', - name: 'ReVanced', - url: 'https://revanced.app/', - logo: { - '@type': 'ImageObject', - url: 'https://revanced.app/embed.png' - } + schemas={{ + { + '@context': 'https://schema.org', + '@type': 'BreadcrumbList', + itemListElement: [ + { + '@type': 'ListItem', + position: 1, + name: 'Home', + item: 'https://revanced.app/' + }, + { + '@type': 'ListItem', + position: 2, + name: 'Download', + item: 'https://revanced.app/donate' + } + ] } }} /> diff --git a/src/routes/download/+page.svelte b/src/routes/download/+page.svelte index 5ade3b1..b9592fb 100644 --- a/src/routes/download/+page.svelte +++ b/src/routes/download/+page.svelte @@ -44,32 +44,26 @@ diff --git a/src/routes/patches/+page.svelte b/src/routes/patches/+page.svelte index 0f627c2..55eb698 100644 --- a/src/routes/patches/+page.svelte +++ b/src/routes/patches/+page.svelte @@ -108,23 +108,26 @@ Patches', - publisher: { - '@type': 'Organization', - name: 'ReVanced', - url: 'https://revanced.app/', - logo: { - '@type': 'ImageObject', - url: 'https://revanced.app/embed.png' - } + schemas={[ + { + '@context': 'https://schema.org', + '@type': 'BreadcrumbList', + itemListElement: [ + { + '@type': 'ListItem', + position: 1, + name: 'Home', + item: 'https://revanced.app/' + }, + { + '@type': 'ListItem', + position: 2, + name: 'Patches', + item: 'https://revanced.app/patches' + } + ] } - }} + ]} />