fix: check author file has data before attempting to show the profile (#3304)

This commit is contained in:
Olaf Lipinski authored and GitHub committed 2026-02-18 16:11:37 +00:00
1 parent 214e40464e
commit 0707567fd3
1 file changed
+1 -1
@@ -16,7 +16,7 @@
{{ if $authors }}
{{ range $idx, $slug := $authors }}
{{ $profile := partial "functions/get_author_profile" $slug }}
{{ if $profile }}
{{ if $profile.has_data }}
{{ partial "page_author_card" (dict "profile" $profile "page" .) }}
{{ end }}
{{ end }}