From 5dcfa6f13d4931de64d087d2175fbd275fdb63fb Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Wed, 12 Jul 2023 12:20:08 -0700 Subject: [PATCH] Custom title for docs homepage, closes #105 --- docs/_templates/base.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/_templates/base.html b/docs/_templates/base.html index eededf5..822870d 100644 --- a/docs/_templates/base.html +++ b/docs/_templates/base.html @@ -1,5 +1,15 @@ {%- extends "!base.html" %} +{%- block htmltitle -%} +{% if not docstitle %} + {{ title|striptags|e }} +{% elif pagename == master_doc %} + LLM: A CLI utility and Python library for interacting with Large Language Models +{% else %} + {{ title|striptags|e }} - {{ docstitle|striptags|e }} +{% endif %} +{%- endblock -%} + {% block site_meta %} {{ super() }}