From 54df960a4afabd940fca6d454035e4b0169794cd Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Mon, 2 Sep 2024 20:46:15 -0400 Subject: [PATCH] Use | for page separator in meta titles (#13221) ## Summary Same as https://github.com/astral-sh/uv/pull/6953. --- docs/.overrides/main.html | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/docs/.overrides/main.html b/docs/.overrides/main.html index 0ac15144758b3..07cd6bc02dc9c 100644 --- a/docs/.overrides/main.html +++ b/docs/.overrides/main.html @@ -1,11 +1,21 @@ {% extends "base.html" %} +{% block htmltitle %} +{% if page.meta and page.meta.title %} +{{ page.meta.title }} | {{ config.site_name }} +{% elif page.title and not page.is_homepage %} +{{ page.title | striptags }} | {{ config.site_name }} +{% else %} +{{ config.site_name }} +{% endif %} +{% endblock %} + {% block extrahead %} - - - - - + + + + +