Skip to content

Commit c514968

Browse files
committed
Add social card to blog post
1 parent a43cff6 commit c514968

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

_includes/header.html

+6-1
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,16 @@
2020
{% if page.layout == 'blog' %}<meta name="twitter:card" content="summary" />
2121
<meta name="twitter:site" content="@nodered" />
2222
<meta name="twitter:title" content="{{ page.title | xml_escape }}" />
23+
{% if page.image %}
24+
<meta name="twitter:image" content="{{ site.github.url }}{{ page.image }}" />
25+
<meta property="og:image" content="{{ site.github.url }}{{ page.image }}" />
26+
{% else %}
2327
<meta name="twitter:image" content="https://nodered.org/node-red-icon.png" />
28+
<meta property="og:image" content="https://nodered.org/node-red-icon.png" />
29+
{% endif %}
2430
<meta property="og:type" content="website" />
2531
<meta property="og:url" content="{{ site.github.url }}{{ page.url }}" />
2632
<meta property="og:title" content="{{ page.title | xml_escape }}" />
27-
<meta property="og:image" content="https://nodered.org/node-red-icon.png" />
2833
{% if page.description %}
2934
<meta name="twitter:description" content="{{ page.description }}">
3035
<meta property="og:description" content="{{ page.description }}" />

_posts/2024-06-20-version-4-0-released.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
layout: blog
33
title: Version 4.0 released
44
author: nick
5+
image: /blog/content/images/2024/06/nr4-social.png
56
---
67

78
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).
63.8 KB
Loading

0 commit comments

Comments
 (0)