Browse Source

Fix portrait image not displaying when baseurl is not domain root

George Cushen 8 years ago
parent
commit
0768fee350
1 changed files with 2 additions and 2 deletions
  1. 2 2
      layouts/partials/widgets/about.html

+ 2 - 2
layouts/partials/widgets/about.html

@@ -7,9 +7,9 @@
     <div id="profile">
 
       {{ with $.Site.Params.avatar }}
-      <div class="portrait" style="background-image: url('{{ "/img/" | relURL }}{{ . }}');">
+      <div class="portrait" style="background-image: url('{{ $.Site.BaseURL }}img/{{ . }}');">
       </div>
-      <meta itemprop="image" content="{{ "/img/" | relURL }}{{ . }}">
+      <meta itemprop="image" content="{{ $.Site.BaseURL }}img/{{ . }}">
       {{ end }}
 
       <div class="portrait-title">