Explorar o código

Author page shows showcased content from the author, if it exists

Riccardo Balbo %!s(int64=4) %!d(string=hai) anos
pai
achega
e6a37e93ae
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      layouts/taxonomy/author.html

+ 1 - 1
layouts/taxonomy/author.html

@@ -1,6 +1,6 @@
 {{ define "main" }}
 {{ $filter := slice "showcase" }}
-    {{ range first 1 (shuffle  (where   .Site.Pages  "Params.tags"  "intersect" $filter    ) ) }}
+{{ range first 1 (shuffle  (where  (where   .Site.Pages  "Params.authors"  "intersect" (slice .Data.Term)  )  "Params.tags"  "intersect" $filter ))}}
     {{ partial "showcaseBanner.html" . }}
 {{ end }}