Fix Hugo v0.156.0 template deprecations

This commit is contained in:
Eric Gusmao committed 2026-04-03 14:13:30 -03:00
1 parent 9bcb7d37d3
commit ee2fc91522
10 files changed
+14 -10

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
{{ with site.Data.contributors }}
{{ with hugo.Data.contributors }}
<section class="contributors-section mt-12 mb-16">
<div class="flex flex-col items-center mb-6">
<div class="flex items-center gap-2 mb-2">
+1 -1
View File
@@ -1,5 +1,5 @@
{{ with .Params.sharingLinks | default (.Site.Params.article.sharingLinks | default false) }}
{{ $links := site.Data.sharing }}
{{ $links := hugo.Data.sharing }}
<section class="flex flex-row flex-wrap justify-center pt-4 text-xl">
{{ range . }}
{{ with index $links . }}
+1 -1
View File
@@ -1,4 +1,4 @@
{{ with site.Data.sponsors }}
{{ with hugo.Data.sponsors }}
<section class="sponsors-section mt-16 mb-8">
<div class="flex flex-col items-center mb-6">
<div class="flex items-center gap-2 mb-2">
+1 -1
View File
@@ -124,7 +124,7 @@
{{ end }}
{{ if $hasRepoCards }}
{{ $repoColors := site.Data.repoColors }}
{{ $repoColors := hugo.Data.repoColors }}
{{ $cssRules := slice }}
{{/* default color */}}