Skip to content

Commit

Permalink
Add social card to blog post
Browse files Browse the repository at this point in the history
  • Loading branch information
knolleary committed Jun 20, 2024
1 parent a43cff6 commit c514968
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@
{% if page.layout == 'blog' %}<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@nodered" />
<meta name="twitter:title" content="{{ page.title | xml_escape }}" />
{% if page.image %}
<meta name="twitter:image" content="{{ site.github.url }}{{ page.image }}" />
<meta property="og:image" content="{{ site.github.url }}{{ page.image }}" />
{% else %}
<meta name="twitter:image" content="https://nodered.org/node-red-icon.png" />
<meta property="og:image" content="https://nodered.org/node-red-icon.png" />
{% endif %}
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ site.github.url }}{{ page.url }}" />
<meta property="og:title" content="{{ page.title | xml_escape }}" />
<meta property="og:image" content="https://nodered.org/node-red-icon.png" />
{% if page.description %}
<meta name="twitter:description" content="{{ page.description }}">
<meta property="og:description" content="{{ page.description }}" />
Expand Down
1 change: 1 addition & 0 deletions _posts/2024-06-20-version-4-0-released.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: blog
title: Version 4.0 released
author: nick
image: /blog/content/images/2024/06/nr4-social.png
---

Node-RED 4.0 is now available to [install](https://npmjs.org/package/node-red). If upgrading, please read the [upgrade instructions](http://nodered.org/docs/getting-started/upgrading.html).
Expand Down
Binary file added blog/content/images/2024/06/nr4-social.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 c514968

Please sign in to comment.