update logic for twitter card image
This commit is contained in:
parent
7c69c153a7
commit
f14d35dc23
1 changed files with 5 additions and 1 deletions
|
@ -17,7 +17,11 @@
|
||||||
<meta name="twitter:description" content="{{ page.description }}" />
|
<meta name="twitter:description" content="{{ page.description }}" />
|
||||||
<meta name="twitter:creator" content="@ayoayco_public" />
|
<meta name="twitter:creator" content="@ayoayco_public" />
|
||||||
<!-- Twitter summary card with large image must be at least 280x150px -->
|
<!-- Twitter summary card with large image must be at least 280x150px -->
|
||||||
<meta name="twitter:image:src" content="{{ '/assets/images/' | absolute_url }}{{ page.image }}.jpg" />
|
{% if page.image != '' %}
|
||||||
|
<meta name="twitter:image:src" content="{{ '/assets/images/' | absolute_url }}{{ page.image }}.jpg" />
|
||||||
|
{% else %}
|
||||||
|
<meta name="twitter:image:src" content="{{ '/assets/images/' | absolute_url }}jumbotron.jpg" />
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<!-- Open Graph data -->
|
<!-- Open Graph data -->
|
||||||
<meta property="og:title" content="{{ page.title }}" />
|
<meta property="og:title" content="{{ page.title }}" />
|
||||||
|
|
Loading…
Reference in a new issue