Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Improve technical SEO: canonical URL, title, language, description and structured data

Aperta
#521 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
html, javascript
Ambito
search, web-dev

Direzione di ricerca

Start with index.php and data/themes/default/hypha.html, then read related issues #78, #365, and #376 for existing title, language, and description work. The issue also calls for canonical URLs and NewsArticle structured data, so identify the page and article metadata paths before estimating implementation. Done means pages expose the requested canonical URL, page title, content language, description and social description, and peer reviewed articles include the specified structured data.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Impact: High Level: Moderate Pagetype: Peer reviewed article Type: Enhancement Usecase: De Stadsbron Value: Visitors

Search engines get little or misleading information from Hypha pages. This costs De Stadsbron search traffic.

Canonical URLs

The same page is reachable through several URLs; the home page of De Stadsbron, for example, through 4 different URLs. Search engines split ranking over these duplicates.

  • Add <link rel="canonical" href="..."> to every page, using one preferred URL (https, with language, lower case)
  • Optionally redirect the non-preferred variants with a 301 (see #274, #247)
Page title

index.php sets the <title> to the site title only ($hyphaHtml->setTitle(hypha_getTitle())), so every page is titled "De Stadsbron".

  • Set the title to <page or article title> | <site title>, and only the site title on the home page (see #78)
Language

The default theme (data/themes/default/hypha.html) has an <html> element without a lang attribute.

  • Set lang to the content language of the current page, not the interface language (see #365)
Meta description

Pages have no <meta name="description">, so search engines and social media choose a random fragment.

  • Use the excerpt of an article, or an optional "Search engine description" field
  • Fall back to the first ~155 characters of the text
  • Reuse the same text for og:description (see #376)
Structured data

Search engines cannot tell who wrote an article, when it was published and whether it has comments.

  • Add a <script type="application/ld+json"> block with a NewsArticle for peer reviewed articles, containing headline, author, datePublished, dateModified, image, publisher and commentCount (optionally the comments as Comment)

Related: #78, #115, #138, #247, #274, #365, #374, #375, #376, #401

Origin: meeting on the future of Hypha (De Stadsbron).

Lingua principale
JavaScript
Stelle
5
Fork
9
Merge medio
18h 7m
PR unite (30g)
11

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PlanBCode/hypha

Tutte le issue di PlanBCode/hypha

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.