mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-11 12:11:45 +00:00
fix: check author file has data before attempting to show the profile (#3304)
This commit is contained in:
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 }}
|
||||
|
||||
Reference in new issue
Block a user