Fix Hugo v0.156.0 template deprecations

This commit is contained in:
Eric Gusmao
2026-04-03 14:13:30 -03:00
parent 9bcb7d37d3
commit ee2fc91522
10 changed files with 14 additions and 10 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{{ $id := delimit (slice "forgejo" (partial "functions/uid.html" .)) "-" }}
{{- $forgejoURL := print (.Get "server" | default .Site.Params.forgejoDefaultServer) "/api/v1/repos/" (.Get "repo") -}}
{{- $repoColors := .Site.Data.repoColors -}}
{{- $repoColors := hugo.Data.repoColors -}}
{{- $forgejoData := dict -}}
{{- with try (resources.GetRemote $forgejoURL) -}}
{{- with .Err -}}