feat(schema.org): JsonLd (#151)

feat(schema.org): init
This commit is contained in:
Ushie 2023-08-01 02:07:42 +03:00 committed by GitHub
parent 753050cfc9
commit 4c5351b26a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 2392 additions and 0 deletions

View File

@ -29,6 +29,7 @@
"sirv-cli": "^2.0.2",
"svelte": "^3.54.0",
"svelte-check": "^2.9.2",
"svelte-meta-tags": "^2.8.0",
"tslib": "^2.4.1",
"typescript": "^4.9.3",
"vite": "^4.0.0",

2272
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -4,10 +4,38 @@
import SocialHost from '$layout/Hero/SocialHost.svelte';
import Wave from '$lib/components/Wave.svelte';
import Meta from '$lib/components/Meta.svelte';
import { JsonLd } from 'svelte-meta-tags';
</script>
<Meta />
<JsonLd
schema={{
'@context': 'https://schema.org',
'@type': 'WebPage',
name: 'ReVanced',
abstract: 'Continuing the legacy of Vanced',
breadcrumb: 'Home',
publisher: {
'@type': 'Organization',
name: 'ReVanced',
url: 'https://revanced.app/',
logo: {
'@type': 'ImageObject',
url: 'https://revanced.app/embed.png'
},
sameAs: [
'https://github.com/revanced',
'https://twitter.com/revancedapp',
'https://revanced.app/discord',
'https://www.reddit.com/r/revancedapp',
'https://t.me/app_revanced',
'https://www.youtube.com/@ReVanced'
]
}
}}
/>
<main>
<div class="wrap">
<div class="wrappezoid">

View File

@ -5,6 +5,7 @@
import ContributorHost from './ContributorSection.svelte';
import Footer from '$layout/Footer/FooterHost.svelte';
import Meta from '$lib/components/Meta.svelte';
import { JsonLd } from 'svelte-meta-tags';
import Query from '$lib/components/Query.svelte';
import { queries } from '$data/api';
@ -14,6 +15,32 @@
</script>
<Meta title="Contributors" />
<JsonLd
schema={{
'@context': 'https://schema.org',
'@type': 'WebPage',
name: 'ReVanced Contributors',
abstract: 'A list of everyone that has contributed to ReVanced',
breadcrumb: 'Home > Contributors',
publisher: {
'@type': 'Organization',
name: 'ReVanced',
url: 'https://revanced.app/',
logo: {
'@type': 'ImageObject',
url: 'https://revanced.app/embed.png'
},
sameAs: [
'https://github.com/revanced',
'https://twitter.com/revancedapp',
'https://revanced.app/discord',
'https://www.reddit.com/r/revancedapp',
'https://t.me/app_revanced',
'https://www.youtube.com/@ReVanced'
]
}
}}
/>
<main>
<div class="wrapper">

View File

@ -8,6 +8,7 @@
import manager_screenshot from '$images/manager_two.png?format=avif;webp;png&picture';
import Meta from '$lib/components/Meta.svelte';
import { JsonLd } from 'svelte-meta-tags';
import Query from '$lib/components/Query.svelte';
import Button from '$lib/components/Button.svelte';
import Footer from '$layout/Footer/FooterHost.svelte';
@ -44,6 +45,42 @@
</script>
<Meta title="Download" />
<JsonLd
schema={{
'@type': 'MobileApplication',
name: 'ReVanced Manager',
description:
'ReVanced Manager is an Android application that uses ReVanced Patcher to add, remove, and modify existing functionalities in Android applications',
abstract: 'Continuing the legacy of Vanced',
applicationCategory: 'UtilitiesApplication',
applicationSuite: 'ReVanced',
downloadUrl: 'https://revanced.app/download',
maintainer: 'ReVanced',
thumbnailUrl: 'https://revanced.app/manager_two.png',
operatingSystem: 'Android 8',
offers: {
'@type': 'Offer',
price: '0'
},
publisher: {
'@type': 'Organization',
name: 'ReVanced',
url: 'https://revanced.app/',
logo: {
'@type': 'ImageObject',
url: 'https://revanced.app/embed.png'
},
sameAs: [
'https://github.com/revanced',
'https://twitter.com/revancedapp',
'https://revanced.app/discord',
'https://www.reddit.com/r/revancedapp',
'https://t.me/app_revanced',
'https://www.youtube.com/@ReVanced'
]
}
}}
/>
<Dialogue bind:modalOpen={warningDialogue}>
<svelte:fragment slot="title">Warning</svelte:fragment>

View File

@ -11,6 +11,7 @@
import { queries } from '$data/api';
import Meta from '$lib/components/Meta.svelte';
import { JsonLd } from 'svelte-meta-tags';
import PackageMenu from './PackageMenu.svelte';
import Package from './Package.svelte';
import PatchItem from './PatchItem.svelte';
@ -105,6 +106,32 @@
</script>
<Meta title="Patches" />
<JsonLd
schema={{
'@context': 'https://schema.org',
'@type': 'WebPage',
name: 'ReVanced Patches',
abstract: 'A list of ReVanced Patches',
breadcrumb: 'Home > Patches',
publisher: {
'@type': 'Organization',
name: 'ReVanced',
url: 'https://revanced.app/',
logo: {
'@type': 'ImageObject',
url: 'https://revanced.app/embed.png'
},
sameAs: [
'https://github.com/revanced',
'https://twitter.com/revancedapp',
'https://revanced.app/discord',
'https://www.reddit.com/r/revancedapp',
'https://t.me/app_revanced',
'https://www.youtube.com/@ReVanced'
]
}
}}
/>
<div class="search">
<div class="search-contain">