Add OpenGraph/Twitter tags for better sharing
Les mainteneurs répondent en général sous 8 jours
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 35/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- javascript
Piste de recherche
Start by inspecting the generated build/index.html shown in the issue and identify how that file is produced. Confirm where the document head is maintained before adding the requested description, OpenGraph, and Twitter metadata. Done means the generated page contains the intended sharing tags and the Facebook and Twitter validators show the expected values.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Here's a prettified version of the generated+minified build/index.html file:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no" />
<meta name="theme-color" content="#ffffff" />
<link rel="manifest" href="/manifest.json" />
<link rel="icon" type="image/png" sizes="196x196" href="/icons/favicon-196.png" />
<link rel="shortcut icon" href="/icons/favicon.ico" />
<title>Firefox Public Data Report</title>
<link href="/static/css/main.7337a89f.css" rel="stylesheet" />
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root" />
<script type="text/javascript" src="/static/js/main.25ecaea0.js" />
</body>
</html>
At a minimum, we should probably add a meta description tag, but the Facebook OpenGraph should probably add a few more og:* tags to be more "share" friendly. Similarly, here's the Twitter card validator: https://cards-dev.twitter.com/validator.
I think Open Graph/Facebook is able to infer some of the meta tags, but probably best to explicitly set them to the values you want/expect:
Based on the raw tags, we constructed the following Open Graph properties
NAME: VALUE: og:urlhttps://moz-ensemble.herokuapp.com/dashboard/user-activity og:typewebsite og:titleFirefox Public Data Report og:updated_time1523295522 og:description
Here's a random copy-pasta of a mozilla.org meta tags:
<meta name="description" content="Did you know? Mozilla — the maker of Firefox — fights to keep the Internet a global public resource, open and accessible to all.">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Mozilla">
<meta property="og:locale" content="en_US">
<meta property="og:url" content="https://www.mozilla.org/en-US/">
<meta property="og:image" content="https://www.mozilla.org/media/img/mozorg/mozilla-256.4720741d4108.jpg">
<meta property="og:title" content="Internet for people, not profit">
<meta property="og:description" content="Did you know? Mozilla — the maker of Firefox — fights to keep the Internet a global public resource, open and accessible to all.">
<meta property="fb:page_id" content="262134952380">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@mozilla">
<meta name="twitter:domain" content="mozilla.org">
<meta name="twitter:app:name:googleplay" content="Firefox">
<meta name="twitter:app:id:googleplay" content="org.mozilla.firefox">
<meta name="twitter:app:name:iphone" content="Firefox">
<meta name="twitter:app:id:iphone" content="989804926">
<meta name="twitter:app:name:ipad" content="Firefox">
<meta name="twitter:app:id:ipad" content="989804926">
- Langage dominant
- JavaScript
- Étoiles
- 21
- Forks
- 7
- Merge moyen
- 6 j 6 h
- PR mergées (30 j)
- 5
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de mozilla/ensemble
-
Fira Sans is still usedOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 8 jours
-
Do not show all data by defaultOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
Les mainteneurs répondent en général sous 8 jours
-
Post-deploy housekeeping: build script order, source maps, ogimage.xcf, old static/ treePeut-être pris @stephaniehobson l’a pris aujourd’hui. Ouverte
mozilla/ensemble#488 · 1 personne assignée ·
Les mainteneurs répondent en général sous 8 jours
-
Refresh deploy docs and contribute.json now that stage deploys from mainPeut-être pris @stephaniehobson l’a pris aujourd’hui. Ouverte
mozilla/ensemble#487 · 1 personne assignée ·
Les mainteneurs répondent en général sous 8 jours
-
Replace metrics-graphics with Observable PlotPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
Les mainteneurs répondent en général sous 8 jours
Toutes les issues de mozilla/ensemble
Issues similaires
-
🧩 Docs job fails type-checking `generate-plugin-docs.ts`Peut-être pris @X-Guardian l’a pris aujourd’hui. Ouvertediscussion
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
msys2/setup-msys2#673 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
inveniosoftware/invenio-app-rdm#3630 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
githubnext/gh-aw-workshop#5522 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Dayset/ps2-elite-kd#119 ·