From 1f973918c5438074be51d363bddeb76b5988c1ae Mon Sep 17 00:00:00 2001 From: Xianpeng Shen Date: Fri, 25 Sep 2026 00:59:07 +0300 Subject: [PATCH] fix(seo): give the landing page a descriptive document title The landing page's was the site name alone, "Commit Check". That is the headline Google shows, and it tells a searcher nothing about what the tool does: the brand query "commit check" sits at position 4.6 with no clicks, and "check commit" at 5.6. The landing page now sets seo_title, used only for the document title; the social card and search entry keep "Commit Check". --- docs/index.md | 1 + docs/overrides/main.html | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index a9e94cb..592deae 100644 --- a/docs/index.md +++ b/docs/index.md @@ -4,6 +4,7 @@ hide: - toc template: landing.html title: Commit Check +seo_title: Commit Check — Commit message & branch name linter for Git description: Catch bad commits before they merge. Messages, branches, authors and AI attribution, checked from your commit hook to every pull request. --- diff --git a/docs/overrides/main.html b/docs/overrides/main.html index 4b6289a..49c6161 100644 --- a/docs/overrides/main.html +++ b/docs/overrides/main.html @@ -2,10 +2,14 @@ {# The landing page sets `title: Commit Check` so its social card and search entry are not labelled "Home". Material appends the site name to any page - that carries a meta title, which on this one page repeats it. #} + that carries a meta title, which on this one page repeats it. + + The site name alone says nothing to someone who has not heard of it, and + it is what Google shows as the result's headline, so the landing page can + give its document title separately as `seo_title`. #} {% block htmltitle %} {% if page.is_homepage %} - <title>{{ config.site_name }} + {{ page.meta.seo_title or config.site_name }} {% else %} {{ super() }} {% endif %}