浏览代码

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.
Ronny Chevalier 8 年之前
父节点
当前提交
20dcd3d88d
共有 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" 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">