Skip to content

Commit

Permalink
add twitter image
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleguido committed Oct 2, 2023
1 parent 0f3db16 commit f8d622a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
<meta property="og:type" content="{{ page.type }}" />
<!-- add twitter card -->
<meta name="twitter:card" content="summary" />
{%if page.date %}
<meta name="twitter:image" content="{% if page.cover %}{{ page.cover.src |
absolute_url}}{% else %}{{ "/assets/images/maison-du-son.png" |
absolute_url}}{% endif %}" /> {%if page.date %}
<meta name="twitter:label1" content="Date" />
<meta name="twitter:data1" content="{{ page.date | date: "%B %-d, %Y" }}" />
{% endif %} {% if page.authors %}
Expand Down

0 comments on commit f8d622a

Please sign in to comment.