{# Shared template (text-forge). Notes: - Rendered only when page.meta.comments is truthy. - Giscus repo identifiers are provided by the content repo via mkdocs.yml: extra.giscus.repo extra.giscus.repo_id extra.giscus.category extra.giscus.category_id - If identifiers are not provided (e.g., env vars not set), comments are hidden. #} {% if page.meta.comments %} {% set giscus = config.extra.get("giscus", {}) %} {% set repo = giscus.get("repo") %} {% set repo_id = giscus.get("repo_id") %} {% set category = giscus.get("category") %} {% set category_id = giscus.get("category_id") %} {% if repo and repo_id and category and category_id %}

{{ lang.t("meta.comments") }}

{# Synchronize Giscus theme with Material palette #} {% endif %} {% endif %}