Преглед изворни кода

Fix portrait image not displaying when baseurl is not domain root

George Cushen пре 8 година
родитељ
комит
0768fee350
1 измењених фајлова са 2 додато и 2 уклоњено
  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">