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 authored and gcushen committed 2016-10-04 15:32:27 +01:00
1 parent db9dcf6055
commit 7763b7dcba
1 file changed
+3 -1
+3 -1
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>