Skip to content

Commit

Permalink
✨ feat(social-media-cards): add support for twitter:image
Browse files Browse the repository at this point in the history
Related PR: #130
  • Loading branch information
welpo committed Sep 6, 2023
1 parent 3cf9e3a commit 22579a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
{%- set social_media_card = macros_settings::evaluate_setting_priority(setting="social_media_card", page=page | default(value=""), section=section | default(value=""), default_global_value="") -%}
{% if social_media_card %}
<meta property="og:image" content="{{ get_url(path=social_media_card, cachebust=true) }}" />
<meta name="twitter:image" content="{{ get_url(path=social_media_card, cachebust=true) }}" />
<meta name="twitter:card" content="summary_large_image" />
{% endif %}

Expand Down

0 comments on commit 22579a5

Please sign in to comment.