Skip to content

Commit

Permalink
Merge pull request #344 from cagov/jbum-social-media-image-replacement
Browse files Browse the repository at this point in the history
Updated social media share image.
  • Loading branch information
jbum authored Aug 15, 2024
2 parents f21d3a2 + a6d7386 commit fd429fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/_includes/base-layout.njk
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
<meta property="og:description" content="{{ data.og_meta.open_graph_description | striptags }}" />
<meta property="og:title" content="{{ title | safe }}" />
<meta property="og:type" content="website" />
<meta property="og:image" content="{% if data.og_meta.page_social_image_url %}{{ data.og_meta.page_social_image_url | repairMetaImage }}{% else %}{% if previewimage %}/{{ previewimage | repairMetaImage }}{% else %}https://innovation.ca.gov/img/ODI-socialmedia-share_1200x630.png{% endif %}{% endif %}" />
<meta property="og:image" content="{% if data.og_meta.page_social_image_url %}{{ data.og_meta.page_social_image_url | repairMetaImage }}{% else %}{% if previewimage %}/{{ previewimage | repairMetaImage }}{% else %}https://innovation.ca.gov/img/ODI-socialmedia-share_1200x630_v2.png{% endif %}{% endif %}" />
<meta property="og:image:width" content="{% if data.og_meta.page_social_image_url %}{{ data.og_meta.page_social_image_width }}{% else %}{% if previewimage %}608{% else %}1200{% endif %}{% endif %}" />
<meta property="og:image:height" content="{% if data.og_meta.page_social_image_url %}{{ data.og_meta.page_social_image_height }}{% else %}{% if previewimage %}304{% else %}630{% endif %}{% endif %}" />
<meta property="og:image:alt" content="{% if data.og_meta.page_social_image_alt %}{{ data.og_meta.page_social_image_alt }}{% endif %}" />
<meta property="og:locale" content="en_US" />
<meta property="og:site_name" content="{{ data.og_meta.site_name }}" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="{{ data.og_meta.twitter_title | safe }}" />
<meta name="twitter:image" content="{% if data.og_meta.page_social_image_url %}{{ data.og_meta.page_social_image_url | repairMetaImage }}{% else %}{% if previewimage %}/{{ previewimage | repairMetaImage }}{% else %}https://innovation.ca.gov/img/ODI-socialmedia-share_1200x630.png{% endif %}{% endif %}" />
<meta name="twitter:image" content="{% if data.og_meta.page_social_image_url %}{{ data.og_meta.page_social_image_url | repairMetaImage }}{% else %}{% if previewimage %}/{{ previewimage | repairMetaImage }}{% else %}https://innovation.ca.gov/img/ODI-socialmedia-share_1200x630_v2.png{% endif %}{% endif %}" />
<meta name="twitter:image:alt" content="{% if data.og_meta.page_social_image_alt %}{{ data.og_meta.page_social_image_alt }}{% endif %}" />
<meta name="twitter:image:width" content="{% if data.og_meta.page_social_image_url %}{{ data.og_meta.page_social_image_width }}{% else %}{% if previewimage %}608{% else %}1200{% endif %}{% endif %}" />
<meta name="twitter:image:height" content="{% if data.og_meta.page_social_image_url %}{{ data.og_meta.page_social_image_height }}{% else %}{% if previewimage %}304{% else %}630{% endif %}{% endif %}" />
Expand Down
Binary file added src/img/ODI-socialmedia-share_1200x630_v2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fd429fd

Please sign in to comment.