Prefix site.url to meta image URLs
This commit is contained in:
parent
be330bdb4d
commit
c91ae89e95
|
@ -11,7 +11,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if og.image and og.image.url %}
|
{% if og.image and og.image.url %}
|
||||||
<meta property="og:image" content="{{ og.image.url }}"/>
|
<meta property="og:image" content="{{ site.url }}{{ og.image.url }}"/>
|
||||||
{% if og.image.type %}
|
{% if og.image.type %}
|
||||||
<meta property="og:image:type" content="{{ og.image.type }}"/>
|
<meta property="og:image:type" content="{{ og.image.type }}"/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
{% if og.title %}
|
{% if og.title %}
|
||||||
{% if og.image %}
|
{% if og.image %}
|
||||||
<meta name="twitter:card" content="summary_large_image"/>
|
<meta name="twitter:card" content="summary_large_image"/>
|
||||||
<meta name="twitter:image:src" content="{{ og.image.url }}">
|
<meta name="twitter:image:src" content="{{ site.url }}{{ og.image.url }}">
|
||||||
<meta name="twitter:creator" content="@{{ site.twitter.name }}"/>
|
<meta name="twitter:creator" content="@{{ site.twitter.name }}"/>
|
||||||
{% else %}
|
{% else %}
|
||||||
<meta name="twitter:card" content="summary"/>
|
<meta name="twitter:card" content="summary"/>
|
||||||
|
|
|
@ -14,7 +14,7 @@ meta:
|
||||||
og:
|
og:
|
||||||
title: Getting Started with Drupal 8 Module Development
|
title: Getting Started with Drupal 8 Module Development
|
||||||
image:
|
image:
|
||||||
url: 'https://www.oliverdavies.uk/assets/images/talks/dclondon16.png'
|
url: /assets/images/talks/dclondon16.png
|
||||||
type: 'image/png'
|
type: 'image/png'
|
||||||
height: 540
|
height: 540
|
||||||
width: 960
|
width: 960
|
||||||
|
|
Loading…
Reference in a new issue