Skip to content

Commit 0707567

Browse files
authored
fix: check author file has data before attempting to show the profile (#3304)
1 parent 214e404 commit 0707567

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/blox/layouts/_partials/page_author.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
{{ if $authors }}
1717
{{ range $idx, $slug := $authors }}
1818
{{ $profile := partial "functions/get_author_profile" $slug }}
19-
{{ if $profile }}
19+
{{ if $profile.has_data }}
2020
{{ partial "page_author_card" (dict "profile" $profile "page" .) }}
2121
{{ end }}
2222
{{ end }}

0 commit comments

Comments
 (0)