{% extends "base.html" %} {# Page titles are written for someone already inside the site ("Keys", "Reference"), which says nothing to someone meeting the project in a search result or a pasted link. `seo_titles` in zensical.toml maps a page url to the title that page should carry outside the site. It also covers the landing page: Zensical never populates `page.is_homepage`, so the theme would title it "ratelimit-io - ratelimit-io". A page absent from the map keeps the theme default. #} {% set seo_titles = config.extra.seo_titles | d({}) %} {% block htmltitle %} {% if page.url in seo_titles %} {{ seo_titles[page.url] }} ยท {{ config.site_name }} {% else %} {{ super() }} {% endif %} {% endblock %} {# Without these a link to the docs pasted into a chat renders as a bare url. Zensical ships no social-card generation and the docs carry no image asset, so this is the text-only `summary` card. #} {% block extrahead %} {% set og_title = seo_titles[page.url] if page.url in seo_titles else (page.title | striptags) %} {% endblock %}