Browse Source

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

Signed-off-by: Stephan Kulla <git.mail@kulla.me>
Stephan Kulla 8 years ago
parent
commit
7763b7dcba
1 changed files with 3 additions and 1 deletions
  1. 3 1
      layouts/partials/widgets/about.html

+ 3 - 1
layouts/partials/widgets/about.html

@@ -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>