2019-11-17 11:01:09 +00:00
|
|
|
{{ if $.Param "enableBio" }}
|
2019-11-29 09:01:11 +00:00
|
|
|
<section class="bio">
|
2019-11-20 06:55:05 +00:00
|
|
|
<hr class="hr-slash bio-hr"/>
|
|
|
|
<div class="bio__photo-wrapper">
|
2019-11-17 11:01:09 +00:00
|
|
|
{{ $src := "" }}
|
|
|
|
{{ if site.Params.useGravatar }}
|
|
|
|
{{ $src = printf "https://s.gravatar.com/avatar/%s?s=200" (md5 .Site.Params.email) }}
|
|
|
|
<img src="{{ $src }}" alt="{{ if .Site.Params.myname }}{{ .Site.Params.myname }}{{ else }}Avatar{{ end }}" class="bio__photo"/>
|
|
|
|
{{ else }}
|
|
|
|
{{ if (fileExists "static/images/whoami/avatar.png") }}
|
2019-11-29 12:19:03 +00:00
|
|
|
<img data-src="{{ "images/whoami/avatar.png" | relURL }}" alt="{{ if .Site.Params.myname }}{{ .Site.Params.myname }}{{ else }}Avatar{{ end }}" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24pt' height='24pt' viewBox='0 0 24 24' version='1.1'%3E%3Cg id='surface1035795'%3E%3Cpath style=' stroke:none;fill-rule:nonzero;fill:rgb(80%25,80%25,80%25);fill-opacity:1;' d='M 4 4 C 2.90625 4 2 4.90625 2 6 L 2 18 C 2 19.09375 2.90625 20 4 20 L 20 20 C 21.09375 20 22 19.09375 22 18 L 22 6 C 22 4.90625 21.09375 4 20 4 Z M 4 6 L 20 6 L 20 18 L 4 18 Z M 4 6 '/%3E%3C/g%3E%3C/svg%3E%0A" class="lazyload bio__photo"/>
|
2019-11-17 11:01:09 +00:00
|
|
|
{{ else if (fileExists "static/images/whoami/avatar.jpg") }}
|
2019-11-29 12:19:03 +00:00
|
|
|
<img data-src="{{ "images/whoami/avatar.jpg" | relURL }}" alt="{{ if .Site.Params.myname }}{{ .Site.Params.myname }}{{ else }}Avatar{{ end }}" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24pt' height='24pt' viewBox='0 0 24 24' version='1.1'%3E%3Cg id='surface1035795'%3E%3Cpath style=' stroke:none;fill-rule:nonzero;fill:rgb(80%25,80%25,80%25);fill-opacity:1;' d='M 4 4 C 2.90625 4 2 4.90625 2 6 L 2 18 C 2 19.09375 2.90625 20 4 20 L 20 20 C 21.09375 20 22 19.09375 22 18 L 22 6 C 22 4.90625 21.09375 4 20 4 Z M 4 6 L 20 6 L 20 18 L 4 18 Z M 4 6 '/%3E%3C/g%3E%3C/svg%3E%0A" class="lazyload bio__photo"/>
|
2019-11-24 14:31:28 +00:00
|
|
|
{{ else if (fileExists "static/images/whoami/avatar.svg") }}
|
2019-11-29 12:19:03 +00:00
|
|
|
<img data-src="{{ "images/whoami/avatar.svg" | relURL }}" alt="{{ if .Site.Params.myname }}{{ .Site.Params.myname }}{{ else }}Avatar{{ end }}" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24pt' height='24pt' viewBox='0 0 24 24' version='1.1'%3E%3Cg id='surface1035795'%3E%3Cpath style=' stroke:none;fill-rule:nonzero;fill:rgb(80%25,80%25,80%25);fill-opacity:1;' d='M 4 4 C 2.90625 4 2 4.90625 2 6 L 2 18 C 2 19.09375 2.90625 20 4 20 L 20 20 C 21.09375 20 22 19.09375 22 18 L 22 6 C 22 4.90625 21.09375 4 20 4 Z M 4 6 L 20 6 L 20 18 L 4 18 Z M 4 6 '/%3E%3C/g%3E%3C/svg%3E%0A" class="lazyload bio__photo"/>
|
2019-11-17 11:01:09 +00:00
|
|
|
{{ else }}
|
2019-11-29 12:19:03 +00:00
|
|
|
<img data-src="{{ "images/whoami/avatar.jpg" | relURL }}" alt="{{ if .Site.Params.myname }}{{ .Site.Params.myname }}{{ else }}Avatar{{ end }}" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24pt' height='24pt' viewBox='0 0 24 24' version='1.1'%3E%3Cg id='surface1035795'%3E%3Cpath style=' stroke:none;fill-rule:nonzero;fill:rgb(80%25,80%25,80%25);fill-opacity:1;' d='M 4 4 C 2.90625 4 2 4.90625 2 6 L 2 18 C 2 19.09375 2.90625 20 4 20 L 20 20 C 21.09375 20 22 19.09375 22 18 L 22 6 C 22 4.90625 21.09375 4 20 4 Z M 4 6 L 20 6 L 20 18 L 4 18 Z M 4 6 '/%3E%3C/g%3E%3C/svg%3E%0A" class="lazyload bio__photo"/>
|
2019-11-17 11:01:09 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2019-11-15 08:37:32 +00:00
|
|
|
</div>
|
2019-11-20 06:55:05 +00:00
|
|
|
<hr class="hr-slash bio-hr"/>
|
2019-11-17 11:01:09 +00:00
|
|
|
<div class="bio__name">
|
2019-11-15 08:37:32 +00:00
|
|
|
{{ .Site.Params.myname }}
|
|
|
|
</div>
|
2019-11-17 11:01:09 +00:00
|
|
|
<div class="bio__desc">
|
2019-11-15 08:37:32 +00:00
|
|
|
{{ .Site.Params.whoami }}
|
|
|
|
</div>
|
2019-11-17 11:01:09 +00:00
|
|
|
|
|
|
|
{{ if .Site.Params.organization }}
|
|
|
|
<div class="bio__info">
|
|
|
|
<div class="bio__info--icon">
|
|
|
|
{{ partial "svgs/etc/people.svg" (dict "width" 20 "height" 20) }}
|
|
|
|
</div>
|
|
|
|
{{ .Site.Params.organization }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
2019-12-04 02:15:00 +00:00
|
|
|
{{ if .Site.Params.location }}
|
2019-11-17 11:01:09 +00:00
|
|
|
<div class="bio__info">
|
|
|
|
<div class="bio__info--icon">
|
|
|
|
{{ partial "svgs/etc/location.svg" (dict "width" 20 "height" 20) }}
|
|
|
|
</div>
|
|
|
|
{{ .Site.Params.location }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if .Site.Params.email }}
|
|
|
|
<div class="bio__info">
|
|
|
|
<div class="bio__info--icon">
|
|
|
|
{{ partial "svgs/social/email.svg" (dict "width" 20 "height" 20) }}
|
|
|
|
</div>
|
|
|
|
<a href="mailto:{{ .Site.Params.email }}">{{ .Site.Params.email }}</a>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if .Site.Params.link }}
|
|
|
|
<div class="bio__info">
|
|
|
|
<div class="bio__info--icon">
|
|
|
|
{{ partial "svgs/etc/link.svg" (dict "width" 20 "height" 20) }}
|
|
|
|
</div>
|
|
|
|
<a href="{{ .Site.Params.link }}" target="_blank" rel="noreferrer">{{ .Site.Params.link }}</a>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
2019-11-15 08:37:32 +00:00
|
|
|
<div class="bio__social">
|
2019-11-17 11:01:09 +00:00
|
|
|
{{ range $name, $path := $.Param "socialOptions" }}
|
|
|
|
{{ if (and $path (ne $name "email")) }}
|
2019-11-15 08:37:32 +00:00
|
|
|
<a href="{{ $path | safeURL }}" title="{{ $name }}" aria-label="{{ $name }}">
|
|
|
|
{{ partial (print "svgs/social/" $name ".svg") (dict "width" 25 "height" 25) }}
|
|
|
|
</a>
|
|
|
|
{{ end }}
|
2019-11-17 11:01:09 +00:00
|
|
|
{{ end }}
|
2019-11-15 08:37:32 +00:00
|
|
|
</div>
|
2019-11-29 09:01:11 +00:00
|
|
|
</section>
|
2019-11-18 12:14:32 +00:00
|
|
|
<hr class="hr-fade sidebar-hr"/>
|
2019-11-17 11:01:09 +00:00
|
|
|
{{ end }}
|