feat: initial import
This commit is contained in:
commit
03ab1091b1
50 changed files with 1146 additions and 0 deletions
25
layouts/_partials/team.html
Normal file
25
layouts/_partials/team.html
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{{ range (where site.RegularPages "Section" "eq" "team").ByDate }}
|
||||
<div class="team-member">
|
||||
{{ $altName := .Params.name }}
|
||||
{{ if .Param "photo" }}
|
||||
{{ $photo := .Params.photo }}
|
||||
{{ with resources.Get $photo }}
|
||||
<img
|
||||
class="team-member__photo"
|
||||
src="{{ .RelPermalink }}"
|
||||
width="{{ .Width }}"
|
||||
alt="{{ $altName }}" />
|
||||
{{ else }}
|
||||
{{ errorf "Unable to find %s in assets directory" . }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<div class="team-member__photo" alt="{{ $altName }}"></div>
|
||||
{{ end }}
|
||||
<div>
|
||||
<strong class="team-member__name">{{ .Param "name" }}</strong>
|
||||
<span class="team-member__education">{{ .Param "education" }}</span>
|
||||
<span class="team-member__pronoun">{{ .Param "pronoun" }}</span>
|
||||
</div>
|
||||
<div class="team-member__role">{{ .Param "role" }}</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue