Skip to content

Commit c4d91fb

Browse files
committed
feat: replace twiiter image with image
- set post image as og:image - remove image on posts where it is not needed
1 parent ebabfcb commit c4d91fb

12 files changed

+15
-21
lines changed

website/content/blog/decap-3-1-0-beta-0.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Decap 3.1.0-beta.0
33
author: Martin Jagodic
44
description: This beta release brings React 18
55
meta_description: ""
6-
twitter_image: /img/decap-3.1.0-beta.0.png
6+
image: /img/decap-3.1.0-beta.0.png
77
date: 2023-10-24T09:01:53.438Z
88
---
99
The main feature of this release is the upgrade to React 18. This is a large change with potential side effects, so we decided to release a beta version.
@@ -12,4 +12,4 @@ We kindly invite everyone to test, especially Gatsby users, who were most eagerl
1212

1313
NPM: <https://www.npmjs.com/package/decap-cms/v/3.1.0-beta.0>
1414

15-
GitHub Pull Request: <https://github.com/decaporg/decap-cms/pull/6941>
15+
GitHub Pull Request: <https://github.com/decaporg/decap-cms/pull/6941>

website/content/blog/decap-3.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: >-
44
First release as Decap CMS is now available
55
date: 2023-08-23T08:00:00.000Z
66
author: Martin Jagodic
7-
twitter_image: /img/decap-3.png
7+
image: /img/decap-3.png
88
---
99
We are happy to announce that the first release of Decap CMS is now available. It is released under 3.0 to honor the 2 major versions of the Netlify CMS.
1010

website/content/blog/git-based-cms-definition-features-best-practices.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: Martin Jagodic
44
description: A dive into the definition, main features, caveats, and best
55
practices of a Git-based CMS. This will help you make an informed decision for
66
your next project.
7-
twitter_image: /img/definition-features-best-practices.png
7+
image: /img/definition-features-best-practices.png
88
date: 2023-11-15T09:18:08.062Z
99
---
1010
In this post, we'll dive into the definition, main features, caveats, and best practices of Git-based CMS, helping you make an informed decision for your next project.
@@ -59,4 +59,4 @@ Research your options thoroughly, as there are numerous Git-based CMS platforms
5959

6060
Git-based CMS offers versioning, simplicity, and security, making it a joy to install, use, and maintain. It is suitable for small to large projects, but there is an upper limit to its scalability.
6161

62-
It streamlines the CMS experience, reducing complexity and offering greater control over your content. In essence, it’s the most of CMS for the least amount of moving parts.
62+
It streamlines the CMS experience, reducing complexity and offering greater control over your content. In essence, it’s the most of CMS for the least amount of moving parts.

website/content/blog/github-discussions.md

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: >-
44
What was once category on Netlify Answers is now moving to GitHub Discussions on the main repository.
55
date: 2023-03-09T10:30:00.000Z
66
author: Martin Jagodic
7-
twitter_image: /img/preview-link-published.png
87
---
98
Netlify CMS used the Discourse subforum on https://answers.netlify.com/, which is not an option for Decap as we are not affiliated with Netlify anymore.
109

website/content/blog/introducing-decap.md

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: >-
44
Decap CMS is a rebranded version of Netlify CMS, offering a simple, easy-to-use, open source, git-based CMS.
55
date: 2023-02-23T10:30:00.000Z
66
author: Martin Jagodic
7-
twitter_image: /img/preview-link-published.png
87
canonical_url: https://techhub.p-m.si/insights/introducing-decap-cms
98
---
109
We are proud to introduce Decap CMS, the [rebranded version of Netlify CMS](https://www.netlify.com/blog/netlify-cms-to-become-decap-cms/). We took this step because we didn't like that this awesome project was slowly dying, and we wanted to ensure that it would continue to be supported and improved.

website/content/blog/march-23-status-update.md

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: >-
44
Updating Slate, fixing Cypress tests, and preparing for the first PR
55
date: 2023-03-31T08:00:00.000Z
66
author: Anže Demšar
7-
twitter_image: /img/preview-link-published.png
87
---
98
We took over this project a month ago and although there were not many commits to the main repository, we have been working on the project under the hood. We want the first Decap release to be a drop-in replacement, and we want to make sure that it works.
109

website/content/blog/moving-to-discord.md

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: >-
44
We are migrating our community chat from Slack to Discord
55
date: 2023-03-01T10:30:00.000Z
66
author: Martin Jagodic
7-
twitter_image: /img/preview-link-published.png
87
---
98
During the transition period, we will be active on both services, and Slack will remain open until it dies off. This decision was based on the fact that when we took over, the most requested feature on Slack was to migrate to Discord, and we were already considering it ourselves.
109

website/content/blog/software-reviews-gold-medal-2023.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Decap Receives Software Reviews Gold Medal for 2023
33
author: Martin Jagodic
44
description: Decap has been named a top content marketing tool in the Software
55
Reviews Content Marketing Data Quadrant Awards for 2023.
6-
twitter_image: /img/sr-gold_medal-2023.png
6+
image: /img/sr-gold_medal-2023.png
77
date: 2023-05-15T08:00:00.000Z
88
---
99
Decap (ex-Netlify CMS) has been recognized as a top content marketing tool in the 2023 Software Reviews Content Marketing Data Quadrant Awards. With a score of 9.1 out of 10 and 100% user satisfaction, Decap proves its value in enhancing content marketing workflows.
@@ -18,4 +18,4 @@ The Software Reviews Awards evaluate tools based on user feedback. Decap's high
1818

1919
According to users, Decap CMS stands out for its intuitive interface, robust and extensive features, and good collaboration among content teams. Real-time previews and integration with git streamline workflows, leading to increased productivity and smoother content creation and editing processes. The tool's extensive content publishing capabilities enable businesses to distribute content across various channels and tailor it to target audiences. This customization maximizes engagement and drives better results.
2020

21-
This award belongs to the community that built this tool over the years. For us (the new maintainers) this proves that we are responsible for an awesome tool and it gives us motivation to keep it alive and kicking.
21+
This award belongs to the community that built this tool over the years. For us (the new maintainers) this proves that we are responsible for an awesome tool and it gives us motivation to keep it alive and kicking.

website/src/components/layout.js

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ function Layout({ hasPageHero, children }) {
5353
>
5454
<Helmet defaultTitle={title} titleTemplate={`%s | ${title}`}>
5555
<meta name="description" content={description} />
56+
<meta name="og:image" content="https://decapcms.org/img/og-image.jpg" />
5657
<link
5758
rel="stylesheet"
5859
href="https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,700,900|Roboto+Mono:400,700"

website/src/html.js

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class HTML extends React.Component {
1212
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1313
<meta name="apple-mobile-web-app-title" content="Decap CMS" />
1414
<meta name="application-name" content="Decap CMS" />
15-
<meta property="og:image" content="https://decapcms.org/img/og-image.jpg" />
1615

1716
<link rel="icon" type="image/png" href="/img/favicon/favicon-32x32.png" sizes="32x32" />
1817
<link rel="icon" type="image/png" href="/img/favicon/favicon-16x16.png" sizes="16x16" />

website/src/templates/blog-post.js

+6-8
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,20 @@ import BlogPostTemplate from '../components/blog-post-template';
99

1010
function BlogPost({ data }) {
1111
const { html, frontmatter } = data.markdownRemark;
12-
const { author, title, date, description, meta_description, twitter_image, canonical_url } =
13-
frontmatter;
12+
const { author, title, date, description, meta_description, image, canonical_url } = frontmatter;
1413
const { siteUrl } = data.site.siteMetadata;
15-
const twitterImageUrl =
16-
twitter_image && `${trimEnd(siteUrl, '/')}/${trimStart(twitter_image, '/')}`;
17-
18-
const desc = meta_description || description;
14+
const imageUrl = image && `${trimEnd(siteUrl, '/')}/${trimStart(image, '/')}`;
15+
const desc = description || meta_description;
1916

2017
return (
2118
<Layout>
2219
<Helmet>
2320
<title>{title}</title>
2421
{desc && <meta name="description" content={desc} />}
22+
{image && <meta name="og:image" content={imageUrl} />}
2523
{canonical_url && <link rel="canonical" href={canonical_url} />}
2624
</Helmet>
27-
<TwitterMeta title={title} description={desc} image={twitterImageUrl} />
25+
<TwitterMeta title={title} description={desc} image={imageUrl} />
2826
<BlogPostTemplate title={title} author={author} date={date} html={html} />
2927
</Layout>
3028
);
@@ -46,7 +44,7 @@ export const pageQuery = graphql`
4644
# meta_description
4745
date(formatString: "MMMM D, YYYY")
4846
author
49-
twitter_image
47+
image
5048
canonical_url
5149
}
5250
html

website/static/admin/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ collections:
165165
widget: text,
166166
required: false,
167167
}
168-
- { label: Twitter Image, name: twitter_image, widget: image }
168+
- { label: Image, name: image, widget: image }
169169
- { label: Date, name: date, widget: date }
170170
- { label: Body, name: body, widget: markdown }
171171
- name: community

0 commit comments

Comments
 (0)