fix: ansible card values are build-time only (Galaxy blocks CORS)

This commit is contained in:
Kevin Horst
2026-05-08 19:26:55 +02:00
parent 88863335fd
commit a9869a55a6
3 changed files with 6 additions and 36 deletions
+3 -12
View File
@@ -22,7 +22,7 @@
{{- $type = "collection" -}}
{{- end -}}
{{ $id := delimit (slice "ansible" $type (partial "functions/uid.html" .)) "-" }}
{{ $id := delimit (slice "ansible" (partial "functions/uid.html" .)) "-" }}
{{- $title := "" -}}
{{- $description := "" -}}
@@ -124,7 +124,7 @@
<span class="text-md mr-2 text-neutral-800 dark:text-neutral">
{{ partial "icon.html" "download" }}
</span>
<div id="{{ $id }}-downloads" class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
<div class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
{{ template "_format-int" $downloads }}
</div>
@@ -132,7 +132,7 @@
<span class="text-md mr-2 text-neutral-800 dark:text-neutral">
{{ partial "icon.html" "tag" }}
</span>
<div id="{{ $id }}-version" class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
<div class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
{{ $version }}
</div>
{{- end }}
@@ -158,15 +158,6 @@
</div>
{{- end }}
</div>
{{ $fetchRepo := resources.Get "js/fetch-repo.js" }}
{{ $fetchRepo = $fetchRepo | resources.Minify | resources.Fingerprint ($.Site.Params.fingerprintAlgorithm | default "sha512") }}
<script
async
type="text/javascript"
src="{{ $fetchRepo.RelPermalink }}"
integrity="{{ $fetchRepo.Data.Integrity }}"
data-repo-url="{{ $apiURL }}"
data-repo-id="{{ $id }}"></script>
</a>
</div>
{{- else if $apiURL -}}