Эх сурвалжийг харах

render bio for each authors in pages

https://github.com/gcushen/hugo-academic/issues/928
Xi Ruoyao 6 жил өмнө
parent
commit
588d703b8b

+ 6 - 0
layouts/partials/page_author.html

@@ -16,6 +16,11 @@
   {{ $author_urlized = urlize $first_author }}
 {{ end }}
 
+
+{{ range $key, $value := $.Params.authors }}
+{{ $author := $value }}
+{{ $author_urlized = urlize $author }}
+
 {{ $taxonomy := "authors" }}
 {{ $profile_page := site.GetPage (printf "/%s/%s" $taxonomy $author_urlized) }}
 {{ with $profile_page }}
@@ -63,3 +68,4 @@
   </div>
 {{end}}{{/* Profile page block */}}
 {{end}}{{/* Show profile block */}}
+{{end}}