Add OG tags

This commit is contained in:
Nikita Karamov 2023-09-02 19:22:30 +02:00
parent 603871f20e
commit 0f95c6ec58
No known key found for this signature in database
GPG Key ID: 41D6F71EE78E77CD
8 changed files with 18 additions and 9 deletions

BIN
public/banner.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

View File

@ -1,5 +1,4 @@
{
"title": "Share₂Fedi — eine instanzunabhängige Share-Seite für das Fediverse",
"metaDescription": "Share₂Fedi ist eine Share-Seite für Mastodon, Misskey, Friendica und andere. Geben Sie Ihren Beitragstext und die Instanz-URL ein und klicken Sie auf „Veröffentlichen“!",
"language": "Sprache: {}",
"description": "Share₂Fedi ist eine instanzunabhängige Share-Seite für {}. Mit ihr können Sie von einer einzigen Seite aus auf verschiedenen föderierten Plattformen posten.",

View File

@ -1,5 +1,4 @@
{
"title": "Share₂Fedi — an instance-agnostic share page for the Fediverse",
"metaDescription": "Share₂Fedi is a share page for Mastodon, Misskey, Friendica, and others. Type in your post text and the instance URL and click Publish!",
"language": "Language: {}",
"description": "Share₂Fedi is an instance-agnostic share page for {}. With it, you can post to various federated platforms from a single page.",

View File

@ -1,5 +1,4 @@
{
"title": "Share₂Fedi — una página de compartir independiente de la instancia para el Fediverso",
"metaDescription": "Share₂Fedi es una página de compartir para Mastodon, Misskey, Friendica y otros. ¡Escriba su texto de publicación y la URL de la instancia y haga clic en «Publicar»!",
"language": "Idioma: {}",
"description": "Share₂Fedi es una página de compartir independiente de la instancia para {}. Con ella, puede publicar en varias plataformas federadas desde una sola página.",

View File

@ -1,5 +1,4 @@
{
"title": "Share₂Fedi — une page de partage indépendante pour le Fediverse",
"metaDescription": "Share₂Fedi est une page de partage pour Mastodon, Misskey, Friendica et autres. Tapez votre texte de publication et lURL de linstance, puis cliquez sur « Publier » !",
"language": "Langue : {}",
"description": "Share₂Fedi est une page de partage indépendante pour {}. Avec elle, vous pouvez publier sur diverses plateformes fédérées depuis une seule page.",

View File

@ -1,5 +1,4 @@
{
"title": "Share₂Fedi — инстанс-независимая share-страница для Федивёрса",
"metaDescription": "Share₂Fedi — это share-страница для Mastodon, Misskey, Friendica и других сервисов. Введите текст поста и URL-адрес инстанса и нажмите «Опубликовать»!",
"language": "Язык: {}",
"description": "Share₂Fedi — это инстанс-независимая share-страница для {}. С её помощью вы можете делиться информацией на различных федеративных платформах с одной страницы.",

View File

@ -11,8 +11,6 @@ import "@styles/main.scss";
import LanguageSelect from "@components/language-select.astro";
import Licence from "@components/licence.html";
import Privacy from "@components/privacy.html";
const { title } = Astro.props;
---
<!doctype html>
@ -23,7 +21,7 @@ const { title } = Astro.props;
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title data-translate="title">{title}</title>
<title data-translate="title">Share₂Fedi</title>
<meta
name="description"
content="Share₂Fedi is a share page for Mastodon, Misskey, Friendica, and others. Type in your post text and the instance URL and click Publish!"
@ -34,6 +32,22 @@ const { title } = Astro.props;
rel="canonical"
href={Astro.url}
/>
<meta
property="og:title"
content="Share₂Fedi, a share page for the Fediverse"
/>
<meta
property="og:type"
content="website"
/>
<meta
property="og:image"
content="/banner.png"
/>
<meta
property="og:url"
content={`${Astro.url}banner.png`}
/>
<link
rel="icon"

View File

@ -56,7 +56,7 @@ if (Astro.request.method === "POST") {
}
---
<Layout title="Share₂Fedi — an instance-agnostic share page for the Fediverse">
<Layout>
<form
id="form"
method="POST"