pages/layouts/people/term.html

43 lines
1.1 KiB
HTML

{{ define "main" }}
<div class="row">
<div>
<div class="person-profile">
{{ with .Resources.GetMatch "thumbnail.*" }}
{{ $thumbnail := . }}
{{ $thumbnailResized := $thumbnail.Fill "600x600" }}
<div class="card-header">
<img
class="img-thumbnail"
src="{{ $thumbnailResized.RelPermalink }}"
alt="Thumbnail of {{ .Title }}"
/>
</div>
{{ end }}
<h1>{{ .Title }}</h1>
<div class="account-list">
{{ $isMe := eq .Title "Thomas A. Christensen II" }}
{{ range $account, $username := .Params.accounts }}
{{ partial "account.html" (dict "account" $account "username" $username "isMe" $isMe) }}
{{ end }}
</div>
</div>
</div>
<div style="padding: 1em;">
{{ with .Content }}
<h2>Bio</h2>
{{ . }}
{{ end }}
<h2>Latest Activity</h2>
{{ range .Pages }}
{{ partial "itemcard.html" . }}
{{ end }}
</div>
</div>
{{ end }}