{# 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. Title lives on the (not this wrapper div) — Zensical's content.tooltips JS positions its custom tooltip via getBoundingClientRect() on whichever element carries the title attribute, so it has to be the actual visible/ hoverable element or the tooltip anchors to the wrong box and overlaps it. #} {% set _repo_public = config.extra.site_access == "public" %} {% set _repo_title = "Go to " ~ (config.repo_name | default('GitLab')) ~ " repository" %}
{% 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" %} {{ config.repo_name | default('GitLab') }} {% endif %}