feat: home title brand line, subpage prefix, keywords meta

- Suppress section title prefix on home page (section.path == '/')
- Compose site_title from config.title + config.extra.doctors
- Add keywords meta tag from config.extra.keywords
This commit is contained in:
2026-05-21 00:00:50 +02:00
parent 061c41696f
commit 52165c7af5
+5 -6
View File
@@ -1,9 +1,7 @@
{% if page %}
{% set page_title = page.title %}
{% elif section %}
{% set page_title = section.title %}
{% endif %}
<title>{% if page_title %}{{ page_title | safe }} | {% endif %}{{ config.title | safe }}</title>
{%- set is_home = (section and section.path == '/') -%}
{%- if page %}{% set page_title = page.title %}{% elif not is_home %}{% set page_title = section.title %}{% endif -%}
{%- set site_title = config.title ~ " - " ~ config.extra.doctors -%}
<title>{% if page_title %}{{ page_title | safe }} | {% endif %}{{ site_title | safe }}</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@@ -13,6 +11,7 @@
<meta name="robots" content="noindex,nofollow">
<meta name="description" content="{{ config.description | safe }}">
<meta name="keywords" content="{{ config.extra.keywords | safe }}">
<meta name="author" content="{{ config.extra.practice_name | safe }}">
<link rel="stylesheet" href="/fonts/roboto.css">