mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +02:00
about: Fix schema tag for portrait image (#168)
The image property is not set properly. It expects text or url but it will not look in the `background-image` CSS property, thus it is not found. Fix this by adding a hidden meta element.
This commit is contained in:
parent
e72f643b50
commit
20dcd3d88d
1 changed files with 2 additions and 2 deletions
|
@ -7,9 +7,9 @@
|
|||
<div id="profile">
|
||||
|
||||
{{ with $.Site.Params.avatar }}
|
||||
<div class="portrait" itemprop="image"
|
||||
style="background-image: url('{{ "/img/" | relURL }}{{ . }}');">
|
||||
<div class="portrait" style="background-image: url('{{ "/img/" | relURL }}{{ . }}');">
|
||||
</div>
|
||||
<meta itemprop="image" content="{{ "/img/" | relURL }}{{ . }}">
|
||||
{{ end }}
|
||||
|
||||
<div class="portrait-title">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue