about.html: Make avatar chooseable and use relURL (#47)

Signed-off-by: Stephan Kulla <git.mail@kulla.me>
This commit is contained in:
Stephan Kulla 2016-10-04 16:32:27 +02:00 committed by gcushen
commit 7763b7dcba

View file

@ -9,9 +9,11 @@
<div class="col-xs-12 col-md-4">
<div id="profile">
{{ with $.Site.Params.avatar }}
<div class="portrait" itemprop="image"
style="background-image: url('{{ $.Site.BaseURL }}img/{{ $.Site.Params.avatar }}');">
style="background-image: url('{{ "/img/" | relURL }}{{ . }}');">
</div>
{{ end }}
<div class="portrait-title">
<h2 itemprop="name">{{ $.Site.Params.name }}</h2>