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

オープン
#521 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
html, javascript
領域
search, web-dev

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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).

主要言語
JavaScript
スター
5
フォーク
9
平均マージ
18時間 49分
マージ済み PR(30日)
13

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PlanBCode/hypha のほかの issue

PlanBCode/hypha の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。