Skip to content

Commit 15c285d

Browse files
committed
add cover images for twitter posts
1 parent c74b3f5 commit 15c285d

File tree

6 files changed

+9
-4
lines changed

6 files changed

+9
-4
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
same "printed page" as the copyright notice for easier
188188
identification within third-party archives.
189189

190-
Copyright 2012-2021 Wingify Software Pvt. Ltd.
190+
Copyright 2012-2025 Wingify Software Pvt. Ltd.
191191

192192
Licensed under the Apache License, Version 2.0 (the "License");
193193
you may not use this file except in compliance with the License.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ Please go through our [contributing guidelines](https://github.com/wingify/wingi
4242

4343
[Apache License, Version 2.0](https://github.com/wingify/wingify.github.io/blob/master/LICENSE)
4444

45-
Copyright 2012-2020 Wingify Software Pvt. Ltd.
45+
Copyright 2012-2025 Wingify Software Pvt. Ltd.

_posts/2025-06-26-vwo-fme-mcp-server.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: "AI-Driven Feature Flags: How VWO MCP Server Revolutionizes Your Developm
44
excerpt: "AI-Driven Feature Flags: How VWO MCP Server Revolutionizes Your Development Workflow"
55
authorslug: varun_abhishek
66
author: Varun Malhotra, Abhishek Joshi
7+
cover: https://engineering.wingify.com/images/2025/06/mcp-flow.png
78
---
89

910
## Introduction: Why Feature Flag Management & Experimentation Needs a Revolution

_posts/2025-07-03-dom-manipulation-for-react-sites.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: "VWO Editor: Seamless DOM Manipulations for React-based Websites"
44
excerpt: "VWO Editor: Seamless DOM Manipulations for React-based Websites"
55
authorslug: nitish_mittal
66
author: Nitish Mittal
7+
cover: https://engineering.wingify.com/images/2025/07/dom-manipulation-react-err.png
78
---
89

910
# VWO Editor: Seamless DOM Manipulations for React-based Websites

src/components/SEO.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ const SEO = ({ postNode, postPath, postSEO }) => {
1212
const postMeta = postNode.frontmatter
1313
;({ title } = postMeta)
1414
description = postMeta.description ? postMeta.description : postNode.excerpt
15-
image = postMeta.cover
15+
image = postMeta.cover ? postMeta.cover : 'https://wingify.com/wp-content/themes/wingify/images/labs/engg_blog.png'
1616
postURL = urljoin(config.siteUrl, config.pathPrefix, postPath)
1717
} else {
1818
title = config.siteTitle
1919
description = config.siteDescription
2020
image = config.siteLogo
2121
}
22+
console.log(postMeta, image)
2223

2324
//image = urljoin(config.siteUrl, config.pathPrefix, image)
2425
image = '';
@@ -94,7 +95,7 @@ const SEO = ({ postNode, postPath, postSEO }) => {
9495
/>
9596
<meta name="twitter:title" content={title} />
9697
<meta name="twitter:description" content={description} />
97-
<meta name="twitter:image" content={image} />
98+
<meta name="twitter:image" content="https://wingify.com/wp-content/themes/wingify/images/labs/engg_blog.png" />
9899
</Helmet>
99100
)
100101
}

src/templates/post.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export default ({ data, pageContext }) => {
1818
const post = postNode.frontmatter
1919
const date = postNode.fields.date;
2020
postNode.frontmatter.twitter = yamlData.authors[postNode.frontmatter.authorslug] && yamlData.authors[postNode.frontmatter.authorslug].twitter;
21+
postNode.frontmatter.cover = postNode.frontmatter.cover ? postNode.frontmatter.cover : 'https://wingify.com/wp-content/themes/wingify/images/labs/engg_blog.png'
2122
let disqusConfig = {
2223
url: `${config.siteUrl+slug}`,
2324
identifier: post.id,
@@ -108,6 +109,7 @@ export const pageQuery = graphql`
108109
title
109110
author
110111
authorslug
112+
cover
111113
}
112114
fields {
113115
slug

0 commit comments

Comments
 (0)