diff options
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/about.html | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/layouts/_default/about.html b/layouts/_default/about.html index 99eb93a..e69e671 100644 --- a/layouts/_default/about.html +++ b/layouts/_default/about.html @@ -6,11 +6,32 @@ class="pv5" > <div id="hero" class="mw7 center ph2 near-white lh-copy tc"> - <img src="{{ .Site.Author.avatar }}" class="br-100" /> - <h1 class="f1 mv1">{{ .Site.Author.name }}</h1> - <h2 class="f3 fw3 pa0 ma0">{{ .Site.Author.role }}</h2> - <div class="f2"> - {{ partial "social_links" . }} + {{ $avatar := index .Params.images 1 }} + {{ if hasPrefix $avatar "http" }} + {{ $avatar = resources.GetRemote $avatar }} + {{ else }} + {{ $avatar = resources.Get $avatar }} + {{ end }} + {{ with $avatar }} + <img src="{{ .RelPermalink }}" class="br-100 w5" /> + {{ end }} + <h1 class="f1 mv1"> + {{ .Title }} + </h1> + + {{ with .Params.Subtitle }} + <h2 class="f3 fw3 mv1"> + {{ . }} + </h2> + {{ end }} + + + <div class="f2 mt3"> + {{ if .Params.personal }} + {{ partial "social_links" .Site.Author }} + {{ else }} + {{ partial "social_links" .Site.Params }} + {{ end }} </div> </div> </div> |