Explorar o código

render bio for each authors in pages

https://github.com/gcushen/hugo-academic/issues/928
Xi Ruoyao %!s(int64=6) %!d(string=hai) anos
pai
achega
588d703b8b
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      layouts/partials/page_author.html

+ 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}}