mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +02:00
Fix portrait image not displaying when baseurl is not domain root
This commit is contained in:
parent
479c7a112b
commit
0768fee350
1 changed files with 2 additions and 2 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue