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 -}} + +
+
+ {{ range $person := $core }} + {{- $github := $person.github | default "" -}} + {{- $needle := printf ",%s," $github -}} + {{- if and $github (lt $avatarCount $maxAvatars) (not (in $shown $needle)) -}} + + {{ $person.fullname }} + + {{- $shown = printf "%s%s," $shown $github -}} + {{- $avatarCount = add $avatarCount 1 -}} + {{- end -}} + {{ end }} +
+
diff --git a/layouts/partials/developer_list.html b/layouts/partials/developer_list.html new file mode 100644 index 00000000000..ae5930c8785 --- /dev/null +++ b/layouts/partials/developer_list.html @@ -0,0 +1,30 @@ +{{- $group := .group -}} +{{- $people := index hugo.Data.developer $group -}} +{{- with $people }} +
+
+
+ +
+
+{{- end }} diff --git a/layouts/partials/logowall.html b/layouts/partials/logowall.html new file mode 100644 index 00000000000..8a49f3a547c --- /dev/null +++ b/layouts/partials/logowall.html @@ -0,0 +1,17 @@ +
+ {{- range hugo.Data.logowall }} + {{- range .columns }} + {{- range .logos }} +
+ +
+ {{- end }} + {{- end }} + {{- end }} +
diff --git a/layouts/partials/testimonial_avatars.html b/layouts/partials/testimonial_avatars.html new file mode 100644 index 00000000000..106f41147bb --- /dev/null +++ b/layouts/partials/testimonial_avatars.html @@ -0,0 +1,5 @@ +{{- range partial "testimonial_pages.html" . -}} + {{- with .Params.img -}} + Overview of preCICE user stories + {{- end -}} +{{- end -}} diff --git a/layouts/partials/testimonial_pages.html b/layouts/partials/testimonial_pages.html new file mode 100644 index 00000000000..631351585b7 --- /dev/null +++ b/layouts/partials/testimonial_pages.html @@ -0,0 +1 @@ +{{- return (sort (where site.RegularPages "Section" "testimonials") "File.LogicalName" "desc") -}} diff --git a/layouts/partials/testimonials.html b/layouts/partials/testimonials.html new file mode 100644 index 00000000000..667301a4334 --- /dev/null +++ b/layouts/partials/testimonials.html @@ -0,0 +1,30 @@ +{{- range partial "testimonial_pages.html" . }} + {{- $testimonial := . -}} +

{{ .Title }}

+ +
+
+ {{ .Content }} + {{- with .Params.author }} +

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

+ {{- end }} +
+
+ {{- with .Params.img }} +
+ {{ $testimonial.Title }} +
{{ $testimonial.Title }}
+
+ {{- end }} +
+
+{{- end }}