fix opengraph image

This commit is contained in:
mose 2017-11-18 06:48:58 +08:00
parent d39f793f49
commit 8280830ff9
3 changed files with 3 additions and 3 deletions

View file

@ -16,7 +16,7 @@ markdown: kramdown
paginate: 5 paginate: 5
paginate_path: "/textes/page:num" paginate_path: "/textes/page:num"
excerpt_separator: <!--more--> excerpt_separator: <!--more-->
default_bg: sitelogo.png default_bg: crapaud_fou_sourire.jpg
safe: false safe: false
#timezone: America/Chicago #timezone: America/Chicago
future: true future: true

View file

@ -17,7 +17,7 @@ markdown: kramdown
paginate: 10 paginate: 10
paginate_path: "/textes/page:num" paginate_path: "/textes/page:num"
excerpt_separator: <!--more--> excerpt_separator: <!--more-->
default_bg: sitelogo.png default_bg: crapaud_fou_sourire.jpg
safe: false safe: false
#timezone: America/Chicago #timezone: America/Chicago
future: true future: true

View file

@ -44,7 +44,7 @@
{% assign domain = site.urlimg %} {% assign domain = site.urlimg %}
{% endif %} {% endif %}
<meta property="og:image" content="{{ domain }}{{ page.imagefeature }}">{% else %} <meta property="og:image" content="{{ domain }}{{ page.imagefeature }}">{% else %}
<meta property="og:image" content="{% if page.imagesummary %}{{ site.urlimg }}{{ page.imagesummary }}{% else %}{{ site.urlimg }}{{ site.default_bg }}{% endif %}">{% endif %} <meta property="og:image" content="{% if page.imagesummary %}{{ site.urlimg }}{{ page.imagesummary }}{% else %}{{ site.urlimg }}/{{ site.default_bg }}{% endif %}">{% endif %}
{% if page.videofeature %}<meta property="og:video" content="{{ page.videofeature }}">{% endif %} {% if page.videofeature %}<meta property="og:video" content="{{ page.videofeature }}">{% endif %}
<meta property="fb:app_id" content="1003108156422006"> <meta property="fb:app_id" content="1003108156422006">
<meta property="fb:admins" content="817465054"> <meta property="fb:admins" content="817465054">