diff --git a/layouts/partials/community_spotlight.html b/layouts/partials/community_spotlight.html new file mode 100644 index 00000000000..c3c297cc87d --- /dev/null +++ b/layouts/partials/community_spotlight.html @@ -0,0 +1,26 @@ + + +{{- $core := slice -}} +{{- with hugo.Data.developer.leads }}{{ $core = $core | append . }}{{ end -}} +{{- with hugo.Data.developer.main }}{{ $core = $core | append . }}{{ end -}} +{{- with (index hugo.Data.developer "main-inactive") }}{{ $core = $core | append . }}{{ end -}} +{{- with hugo.Data.developer.contributors }}{{ $core = $core | append . }}{{ end -}} +{{- $shown := "," -}} +{{- $avatarCount := 0 -}} +{{- $maxAvatars := 99 -}} + +
+
+ {{- $shown = printf "%s%s," $shown $github -}}
+ {{- $avatarCount = add $avatarCount 1 -}}
+ {{- end -}}
+ {{ end }}
+
+ -
+ {{- with $testimonial.Params.author_link -}}
+ {{ $testimonial.Params.author }}
+ {{- else -}}
+ {{ $testimonial.Params.author }}
+ {{- end -}}
+
+ {{ with $testimonial.Params.organisation_link }}{{ $testimonial.Params.organisation }}{{ else }}{{ $testimonial.Params.organisation }}{{ end }}
+