Skip to content

Commit

Permalink
Merge pull request #124 from alphagov/twitter-image
Browse files Browse the repository at this point in the history
Fix twitter card not showing our image
  • Loading branch information
rjbaker authored Jun 25, 2021
2 parents a906f02 + ee42867 commit 81fa9ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/components/meta_tags.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{% macro metaTags(description, title, url) %}
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://www.gov.uk{{ '/alerts/assets/images/opengraph-image.png' | file_fingerprint }}">
<meta property="og:description" content="{{ description }}">
<meta property="og:title" content="{{ title }}">
<meta property="og:url" content="{{ url }}">
<meta property="og:type" content="article">
<meta property="og:site_name" content="GOV.UK">
<meta property="og:image" content="https://www.gov.uk{{ '/alerts/assets/images/opengraph-image.png' | file_fingerprint }}">
<meta name="twitter:card" content="summary">
<meta name="description" content="{{ description }}">
{% endmacro %}

0 comments on commit 81fa9ee

Please sign in to comment.