mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-29 22:24:31 +02:00
feat: better meta tags
This commit is contained in:
parent
b70b12e417
commit
d0d2e3f412
@ -3,6 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%sveltekit.assets%/logo.svg" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
|
26
src/lib/components/Meta.svelte
Normal file
26
src/lib/components/Meta.svelte
Normal file
@ -0,0 +1,26 @@
|
||||
<script lang="ts">
|
||||
let _title: string = "";
|
||||
$: title = _title === "" ? "ReVanced" : `ReVanced | ${_title}`;
|
||||
|
||||
export { _title as title };
|
||||
|
||||
export let description: string = "Continuing the legacy of Vanced.";
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>{title}</title>
|
||||
<meta name="description" content={description} />
|
||||
<meta name="theme-color" content="#9FD5FF" />
|
||||
|
||||
<!-- OpenGraph -->
|
||||
<meta property="og:title" content={title} />
|
||||
<meta property="og:description" content={description} />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:image" content="/embed.png" />
|
||||
|
||||
<!-- Twitter -->
|
||||
<meta name="twitter:title" content={title} />
|
||||
<meta name="twitter:description" content={description} />
|
||||
<meta name="twitter:image" itemprop="image" content="/embed.png" />
|
||||
<meta name="twitter:card" content="summary" />
|
||||
</svelte:head>
|
@ -1,10 +1,13 @@
|
||||
<script lang="ts">
|
||||
import Meta from '$lib/components/Meta.svelte';
|
||||
import Navigation from '$layout/Navbar/NavButton.svelte';
|
||||
import { page } from '$app/stores';
|
||||
|
||||
$: status = $page.status;
|
||||
</script>
|
||||
|
||||
<Meta title="404" />
|
||||
|
||||
<section class="error">
|
||||
<h1>{status}</h1>
|
||||
{#if status == 404}
|
||||
|
@ -21,18 +21,6 @@
|
||||
);
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="og:title" content="ReVanced" />
|
||||
<meta content="/embed.png" property="og:image" />
|
||||
<meta property="og:description" content="Continuing the legacy of Vanced." />
|
||||
<meta name="twitter:image" itemprop="image" content="/embed.png" />
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="theme-color" content="#9FD5FF" />
|
||||
</svelte:head>
|
||||
|
||||
<NavHost />
|
||||
|
||||
{#if $show_loading_animation}
|
||||
@ -42,8 +30,8 @@
|
||||
{/if}
|
||||
<!--
|
||||
afn if you are moving the footer here, please make it not use the repositories store directly and instead use component props :) -->
|
||||
<!-- <Footer repos={$repositories}> -->
|
||||
|
||||
<!-- <Footer repos={$repositories}> -->
|
||||
<style lang="scss" global>
|
||||
@import '../app.scss';
|
||||
</style>
|
||||
|
@ -3,13 +3,10 @@
|
||||
import Home from '$layout/Hero/HeroSection.svelte';
|
||||
import SocialHost from '$layout/Hero/SocialHost.svelte';
|
||||
import Wave from '$lib/components/Wave.svelte';
|
||||
import Meta from '$lib/components/Meta.svelte';
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>ReVanced</title>
|
||||
<meta content="ReVanced" name="og:title" />
|
||||
<meta content="ReVanced" name="twitter:title" />
|
||||
</svelte:head>
|
||||
<Meta />
|
||||
|
||||
<main>
|
||||
<div class="wrap">
|
||||
|
@ -6,13 +6,10 @@
|
||||
|
||||
import ContributorHost from './ContributorSection.svelte';
|
||||
import Footer from '$layout/Footer.svelte';
|
||||
import Meta from '$lib/components/Meta.svelte';
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>ReVanced | Contributors</title>
|
||||
<meta content="ReVanced | Contributors" name="og:title" />
|
||||
<meta content="ReVanced | Contributors" name="twitter:title" />
|
||||
</svelte:head>
|
||||
<Meta title="Contributors" />
|
||||
|
||||
<main>
|
||||
<div class="wrapper">
|
||||
|
@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
import Meta from '$lib/components/Meta.svelte';
|
||||
import type { PageData } from './$types';
|
||||
|
||||
import '../documentation.scss';
|
||||
@ -8,11 +9,7 @@
|
||||
export let data: PageData;
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>ReVanced | Docs</title>
|
||||
<meta content="ReVanced | Docs" name="og:title" />
|
||||
<meta content="ReVanced | Docs" name="twitter:title" />
|
||||
</svelte:head>
|
||||
<Meta title="Docs" />
|
||||
|
||||
<div id="markup-content">
|
||||
<h1 class="title">{data.title}</h1>
|
||||
|
@ -2,9 +2,10 @@
|
||||
import { tools } from '$data/api';
|
||||
import { fly } from 'svelte/transition';
|
||||
import { quintOut } from 'svelte/easing';
|
||||
|
||||
|
||||
import manager_screenshot from '$images/manager_two.png?format=avif;webp;png&picture';
|
||||
|
||||
import Meta from '$lib/components/Meta.svelte';
|
||||
import Button from '$lib/components/Button.svelte';
|
||||
import Footer from '$layout/Footer.svelte';
|
||||
import Picture from '$lib/components/Picture.svelte';
|
||||
@ -12,6 +13,8 @@
|
||||
$: manager = $tools['revanced/revanced-manager'];
|
||||
</script>
|
||||
|
||||
<Meta title="Download" />
|
||||
|
||||
<div class="wrapper center" in:fly={{ y: 10, easing: quintOut, duration: 750 }}>
|
||||
<h2>ReVanced <span>Manager</span></h2>
|
||||
<p>Patch your favourite apps, right on your device.</p>
|
||||
|
@ -5,6 +5,7 @@
|
||||
import type { Patch } from '$lib/types';
|
||||
import { patches as api_patches } from '$data/api';
|
||||
|
||||
import Meta from '$lib/components/Meta.svelte';
|
||||
import PackageMenu from './PackageMenu.svelte';
|
||||
import Package from './Package.svelte';
|
||||
import PatchItem from './PatchItem.svelte';
|
||||
@ -60,11 +61,7 @@
|
||||
};
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>ReVanced | Patches</title>
|
||||
<meta content="ReVanced | Patches" name="og:title" />
|
||||
<meta content="ReVanced | Patches" name="twitter:title" />
|
||||
</svelte:head>
|
||||
<Meta title="Patches" />
|
||||
|
||||
<div class="search">
|
||||
<div class="search-contain">
|
||||
|
Loading…
x
Reference in New Issue
Block a user