Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions layouts/partials/community_spotlight.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<link rel="stylesheet" href="{{ "css/community-spotlight.css" | relURL }}">

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

<div class="contributor-preview-container">
<div class="contributor-preview-grid">
{{ range $person := $core }}
{{- $github := $person.github | default "" -}}
{{- $needle := printf ",%s," $github -}}
{{- if and $github (lt $avatarCount $maxAvatars) (not (in $shown $needle)) -}}
<a href="https://github.com/{{ $github }}" target="_blank" rel="noopener noreferrer" title="{{ $person.fullname }}">
<img class="contributor-preview-avatar" src="https://github.com/{{ $github }}.png?size=120" alt="{{ $person.fullname }}" loading="lazy">
</a>
{{- $shown = printf "%s%s," $shown $github -}}
{{- $avatarCount = add $avatarCount 1 -}}
{{- end -}}
{{ end }}
</div>
</div>
30 changes: 30 additions & 0 deletions layouts/partials/developer_list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{{- $group := .group -}}
{{- $people := index hugo.Data.developer $group -}}
{{- with $people }}
<br>
<div class="row">
<div class="col-md-10 offset-md-1">
<ul class="devlist">
{{- range $index, $person := sort . "name" }}
<li{{ if eq $index 0 }} class="devlist-first"{{ end }}>
{{- with $person.img }}
<div class="devlist-img">
<img src="{{ printf "/images/developer/%s.jpg" . | relURL }}" alt="Portrait">
</div>
{{- end }}
<div class="devlist-left">
<p>
<strong>{{ $person.fullname }}</strong><br>
{{ $person.institution }}
</p>
</div>
<ul class="devlist-right">
{{- with $person.orcid }}<li><a href="{{ . }}" alt="See the institutional website" class="no-icon"><i class="fab fa-orcid"></i></a></li>{{ end }}
{{- with $person.github }}<li><a href="https://github.com/{{ . }}" alt="See the Github profile" class="no-icon"><i class="fab fa-github"></i></a></li>{{ end }}
</ul>
</li>
{{- end }}
</ul>
</div>
</div>
{{- end }}
17 changes: 17 additions & 0 deletions layouts/partials/logowall.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<div id="logowall-items" class="row logowall-grid" role="region" aria-label="Community logos">
{{- range hugo.Data.logowall }}
{{- range .columns }}
{{- range .logos }}
<div class="col-md-3 col-sm-3 col-3 text-center logo-item" data-category="{{ .category }}">
<a href="{{ .link }}" class="logo no-icon">
<div class="logo-holder d-flex align-items-center">
<img class="img-fluid mx-auto d-block" src="{{ printf "/images/logo/%s" .logo | relURL }}" alt="{{ .name }}, {{ .country }}" loading="lazy">
</div>
<p class="institution">{{ .name }}</p>
<p class="country">{{ .country }}</p>
</a>
</div>
{{- end }}
{{- end }}
{{- end }}
</div>
5 changes: 5 additions & 0 deletions layouts/partials/testimonial_avatars.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{- range partial "testimonial_pages.html" . -}}
{{- with .Params.img -}}
<img class="img-circle" src="{{ printf "/images/testimonials/%s" . | relURL }}" alt="Overview of preCICE user stories" style="border-radius: 50%; width: 100px; height: 100px; object-fit: cover; display: inline; border: 1px solid lightgrey;">
{{- end -}}
{{- end -}}
1 change: 1 addition & 0 deletions layouts/partials/testimonial_pages.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{- return (sort (where site.RegularPages "Section" "testimonials") "File.LogicalName" "desc") -}}
30 changes: 30 additions & 0 deletions layouts/partials/testimonials.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{{- range partial "testimonial_pages.html" . }}
{{- $testimonial := . -}}
<h2 id="{{ .Title | anchorize }}">{{ .Title }}</h2>

<div class="row">
<div class="col-md-6">
{{ .Content }}
{{- with .Params.author }}
<p>
- <strong>
{{- with $testimonial.Params.author_link -}}
<a href="{{ . }}">{{ $testimonial.Params.author }}</a>
{{- else -}}
{{ $testimonial.Params.author }}
{{- end -}}
</strong><br>
{{ with $testimonial.Params.organisation_link }}<a href="{{ . }}">{{ $testimonial.Params.organisation }}</a>{{ else }}{{ $testimonial.Params.organisation }}{{ end }}
</p>
{{- end }}
</div>
<div class="col-md-6">
{{- with .Params.img }}
<figure>
<img src="{{ printf "/images/testimonials/%s" . | relURL }}" alt="{{ $testimonial.Title }}">
<figcaption>{{ $testimonial.Title }}</figcaption>
</figure>
{{- end }}
</div>
</div>
{{- end }}
Loading