{# Sharing and search metadata for zoomies.sh. Material's own social plugin is not used: it renders a card image per page with Cairo and Pillow, which would put two native libraries into the docs build for a picture the brand pack already supplies. These blocks are the part that matters -- a title, a description, one card image, and a machine-readable description of what the project is, absolute, on every page -- and they cost nothing. Everything here is derived from the page rather than written twice: the description falls back to site_description, the canonical URL is the one MkDocs already computes, the breadcrumb is read out of the navigation, and the modified date comes from git by way of hooks/seo.py. #} {% extends "base.html" %} {% from "partials/icons-zoomies.html" import icon %} {% set layout = page.meta.layout if page else "notfound" %} {# Locally hosted faces, so the page makes no third-party font request. Material would otherwise put a Google Fonts stylesheet in the head, and a render-blocking request to a host the reader cannot reach is what left the tab spinning with nothing to show. The @font-face rules and the woff2 files live in stylesheets/ beside this theme's CSS. #} {% block fonts %} {% endblock %} {# The home page's title in a search result. Its heading is the tagline, written to be read under the logo, and Material would put that in the tab and the result too -- "Give your GitHub Actions runners the Zoomies." says nothing to someone searching for self-hosted runners. The social_title already says what Zoomies is, so the result uses it as well. Every other page keeps Material's rule: its own title, then the site's name. #} {% block htmltitle %} {% if page and page.is_homepage and page.meta and page.meta.social_title %}