{# REPOSITORY INFO — plain icon button by default; on the public tier (config.extra.site_access == "public") switch to Zensical's full repo widget (icon + name + stars/forks/version) instead. Facts only populate for genuinely public repos — the bundled JS fetches them with an unauthenticated browser request, which 404s against a private/internal GitLab project — so this follows the tier's own access flag rather than a separate setting. Widget markup matches zensical/templates/partials/source.html (.md-source / data-md-component= "source") so the existing bundle.js repo-facts fetcher recognizes it. #} {# JS updates the href/title on SPA navigation from #source-repo-data in the content area. It sets THIS div's title, not the 's — the deliberately has no title of its own so the browser falls back to this ancestor's (dynamic, specific) one instead of showing Zensical's generic lang.t('source') tooltip. #} {% set _repo_public = config.extra.site_access == "public" %}
{% if _repo_public %}
{% set icon = config.theme.icon.repo | default("simple/gitlab", true) %} {% include ".icons/" ~ icon ~ ".svg" %}
{{ config.repo_name }}
{% else %} {% set icon = config.theme.icon.repo | default("simple/gitlab", true) %} {% include ".icons/" ~ icon ~ ".svg" %} {% endif %}