Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
---

Expand Down
8 changes: 6 additions & 2 deletions docs/overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}</title>
<title>{{ page.meta.seo_title or config.site_name }}</title>
{% else %}
{{ super() }}
{% endif %}
Expand Down