2019-11-09 19:52:09 +00:00
|
|
|
{{ if $.Param "enableWhoami" }}
|
2019-11-19 17:54:47 +00:00
|
|
|
<div class="whoami__gutter"></div>
|
2019-11-20 06:55:05 +00:00
|
|
|
<hr class="hr-slash whoami-hr"/>
|
2019-11-29 09:01:11 +00:00
|
|
|
<aside class="whoami">
|
2019-11-09 19:52:09 +00:00
|
|
|
<div class="whoami__image-wrapper">
|
2019-11-17 16:44:04 +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="whoami__image"/>
|
|
|
|
{{ else }}
|
|
|
|
{{ if (fileExists "static/images/whoami/avatar.png") }}
|
|
|
|
<img src="{{ "images/whoami/avatar.png" | relURL }}" alt="{{ if .Site.Params.myname }}{{ .Site.Params.myname }}{{ else }}Avatar{{ end }}" class="whoami__image"/>
|
|
|
|
{{ else if (fileExists "static/images/whoami/avatar.jpg") }}
|
|
|
|
<img src="{{ "images/whoami/avatar.jpg" | relURL }}" alt="{{ if .Site.Params.myname }}{{ .Site.Params.myname }}{{ else }}Avatar{{ end }}" class="whoami__image"/>
|
2019-11-24 14:31:28 +00:00
|
|
|
{{ else if (fileExists "static/images/whoami/avatar.svg") }}
|
|
|
|
<img src="{{ "images/whoami/avatar.svg" | relURL }}" alt="{{ if .Site.Params.myname }}{{ .Site.Params.myname }}{{ else }}Avatar{{ end }}" class="whoami__image"/>
|
2019-11-17 16:44:04 +00:00
|
|
|
{{ else }}
|
|
|
|
<img src="{{ "images/whoami/avatar.jpg" | relURL }}" alt="{{ if .Site.Params.myname }}{{ .Site.Params.myname }}{{ else }}Avatar{{ end }}" class="whoami__image"/>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2019-11-09 19:52:09 +00:00
|
|
|
</div>
|
2019-11-22 03:43:10 +00:00
|
|
|
<div class="whoami__contents">
|
2019-11-20 17:45:46 +00:00
|
|
|
<div class="whoami__written-by">
|
|
|
|
{{ T "single-writtenBy" }}
|
|
|
|
</div>
|
2019-11-18 19:18:57 +00:00
|
|
|
<div class="whoami__title">
|
2019-11-09 19:52:09 +00:00
|
|
|
{{ .Site.Params.myname }}
|
|
|
|
</div>
|
2019-11-18 19:18:57 +00:00
|
|
|
<div class="whoami__desc">
|
2019-11-19 17:54:47 +00:00
|
|
|
{{ .Site.Params.whoami }}
|
|
|
|
</div>
|
|
|
|
<div class="whoami__social">
|
|
|
|
{{ range $name, $path := $.Param "socialOptions" }}
|
|
|
|
{{ if $path }}
|
|
|
|
<a href="{{ $path | safeURL }}" title="{{ $name }}" aria-label="{{ $name }}">
|
|
|
|
{{ partial (print "svgs/social/" $name ".svg") (dict "width" 25 "height" 25) }}
|
|
|
|
</a>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2019-11-09 19:52:09 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-29 09:01:11 +00:00
|
|
|
</aside>
|
2019-11-20 06:55:05 +00:00
|
|
|
<hr class="hr-slash whoami-hr" />
|
2019-11-09 19:52:09 +00:00
|
|
|
{{ end }}
|