Back to Supervision

Main

docs/theme/main.html

0.28.02.1 KB
Original Source

{% extends "base.html" %} {% block content %} {% if page.nb_url %} {% endif %} {{ super() }} {% endblock content %} {% block extrahead %} {{ super() }} {% if page.meta is defined and page.meta is not none and page.meta is not undefined %} {% set _meta = page.meta %} {% else %} {% set _meta = {} %} {% endif %} {% set page_description = _meta.description | d(config.site_description) %} {# ── GEO: JSON-LD + OG tags (page context required — skip for theme templates like 404) #} {# ── GEO: JSON-LD structured data ──────────────────────────── #} {% for is_home in [page.is_homepage] %}{% if is_home %} {% endif %}{% endfor %} {% if page.url == 'faq/' %} {% endif %} {% if page.url == 'about/' or page.url == 'contact/' %} {% endif %} {% if 'how_to' in page.url %} {% endif %} {# ── How-to FAQ schema ─────────────────────────────────────── #} {% if 'how_to' in page.url %} {% endif %} {% for is_not_home in [not page.is_homepage] %}{% if is_not_home %} {% endif %}{% endfor %} {# ── GEO: Open Graph + Twitter Card meta tags ──────────────── #}{# ── API reference schema (detection/ metrics/ datasets/ reference pages) ── #} {% for is_ref in [('reference' in page.url or 'detection/' in page.url or 'metrics/' in page.url or 'keypoint/' in page.url or 'classification/' in page.url) and 'how_to' not in page.url] %}{% if is_ref %} {% endif %}{% endfor %} {# Cookbooks FAQ schema ── #} {% for is_cookbook in ['cookbook' in page.url] %}{% if is_cookbook %} {% endif %}{% endfor %} {# IndexNow ownership key — do NOT change this value. The same key must exist in three places (all must stay in sync): 1. This meta tag (docs/theme/main.html) 2. The key file at docs/0d5d9799b1cc4a39825146388c6781eb.txt 3. The CI step in .github/workflows/publish-docs.yml Bing/Yandex verify ownership by fetching https://supervision.roboflow.com/.txt and comparing its contents to this meta tag before accepting IndexNow submissions. #}{% endblock %}