Permalink
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (58 sloc) 2.44 KB
{{ define "main" }}
<div class = "row">
<div class = "col-md-12">
<h1>Guests on {{ .Site.Title }}</h1>
</div>
</div>
<div class = "row">
<div class = "col-md-12">
{{ .Content}}
</div>
</div>
{{ if .Params.guests }}
<div class = "row"><!-- guests begin -->
<div class = "col-md-12">
{{ range $person :=.Params.guests }}
{{ if (isset $.Site.Data.guests $person) }}
{{ $p := (index $.Site.Data.guests $person) }}
<div class="row">
<div class="col-md-3">
{{ if and (isset $p "thumbnail") (ne $p.thumbnail "") }}
{{ if (eq (slicestr $p.thumbnail 0 4) "http") }}
<img alt = "{{ $p.full_name }}" src = "{{ $p.thumbnail}}" class="img-responsive" width = "250px">
{{ else }}
<img alt = "{{ $p.full_name }}" src = "{{ $.Site.BaseURL }}{{ $p.thumbnail}}" class="img-responsive" width = "250px">
{{ end }}
{{ else }}
<img alt = "{{ $p.full_name }}" src = "{{ $.Site.BaseURL }}/img/guest/default-guest.png" class="img-responsive" width = "250px" />
{{ end }}
</div>
<div class= "col-md-8">
<h2>{{ $p.full_name }}</h2>
{{ if isset $p "bio" }}
<p>{{ $p.bio | markdownify }}</p>
{{ end }}
{{ if isset $p "homepage" }}
<a href = "{{ $p.homepage}}"><i class="fa fa-home fa-2x"></i></a>
{{ end }}
{{ if isset $p "twitter" }}
<a href = "https://twitter.com/{{ $p.twitter }}"><i class="fa fa-twitter-square fa-2x"></i></a>
{{ end }}
{{ if isset $p "github"}}
<a href = "https://github.com/{{ $p.github}}"><i class="fa fa-github-square fa-2x"></i></a>
{{ end }}
{{ if isset $p "linkedin" }}
<a href = "https://linkedin.com/in/{{ $p.linkedin}}"><i class="fa fa-linkedin-square fa-2x"></i></a>
{{ end }}
{{ if isset $p "facebook" }}
<a href = "https://www.facebook.com/{{ $p.facebook}}"><i class="fa fa-facebook-square fa-2x"></i></a>
{{ end }}
</div>
{{ end }}
</div>
<br />
{{ end }}
</div>
</div><!-- guests end -->
{{ end }}
{{ end }}