Skip to content

Commit 3e891fa

Browse files
Merge branch 'master' into feat/add-meshery-1.0-news
2 parents f68e834 + 664dcab commit 3e891fa

File tree

6 files changed

+27
-37
lines changed

6 files changed

+27
-37
lines changed

gatsby-node.js

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -882,23 +882,20 @@ exports.onCreateNode = ({ node, actions, getNode }) => {
882882
value: collection,
883883
});
884884

885-
// Normalize blog date to ISO string for stable sort order across build environments (fixes production blog order)
886-
if (collection === "blog") {
887-
let dateForSort = "1970-01-01T00:00:00.000Z";
888-
if (node.frontmatter?.date != null) {
889-
try {
890-
const parsed = new Date(node.frontmatter.date).toISOString();
891-
if (!Number.isNaN(Date.parse(parsed))) dateForSort = parsed;
892-
} catch {
893-
// keep fallback
894-
}
885+
let dateForSort = "1970-01-01T00:00:00.000Z";
886+
if (node.frontmatter?.date != null) {
887+
try {
888+
const parsed = new Date(node.frontmatter.date).toISOString();
889+
if (!Number.isNaN(Date.parse(parsed))) dateForSort = parsed;
890+
} catch {
891+
// Keep fallback.
895892
}
896-
createNodeField({
897-
name: "dateForSort",
898-
node,
899-
value: dateForSort,
900-
});
901893
}
894+
createNodeField({
895+
name: "dateForSort",
896+
node,
897+
value: dateForSort,
898+
});
902899

903900
if (collection !== "content-learn") {
904901
let slug = "";

src/collections/integrations/k8gb/index.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ components: [
2020
"colorIcon": "icons/components/gslb/icons/color/gslb-color.svg",
2121
"whiteIcon": "icons/components/gslb/icons/white/gslb-white.svg",
2222
"description": "",
23+
},
24+
{
25+
"name": "zone-delegation",
26+
"colorIcon": "icons/components/zone-delegation/icons/color/zone-delegation-color.svg",
27+
"whiteIcon": "icons/components/zone-delegation/icons/white/zone-delegation-white.svg",
28+
"description": "",
29+
},
30+
{
31+
"name": "zone-delegation",
32+
"colorIcon": "icons/components/zone-delegation/icons/color/zone-delegation-color.svg",
33+
"whiteIcon": "icons/components/zone-delegation/icons/white/zone-delegation-white.svg",
34+
"description": "",
2335
}]
2436
featureList: [
2537
"Provides a security benchmark for Kubernetes",
-21.6 KB
Binary file not shown.

src/collections/members/anita-ihuman/index.mdx

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/collections/news/news-template/0000-00-00-news-title/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ category: Coverage # Must be either "Coverage" or "Release". This is used to det
1111
tags: [] # Mandatory. An array of tags for the news item, such as ["Meshery", "KubeCon", "CNCF"].
1212
presskit: "" # Optional. A URL to a press kit or additional resources related to the news item.
1313
resource: false # Mandatory. A boolean indicating whether this news item is a resource that should be listed in the resources section of the website. If true, it will be included in the resources section; if false or omitted, it will not be included in the resources section but will still appear in the news listing.
14-
published: true # Mandatory A boolean indicating whether the news item is published. If true, it will be visible on the website; if false, it will be hidden until ready for publication.
14+
published: false # Mandatory A boolean indicating whether the news item is published. If true, it will be visible on the website; if false, it will be hidden until ready for publication.
1515
source_url: "" # Mandatory. URL to the original article for "Originally published at" attribution.
1616

1717
---

src/sections/Company/News-single/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const NewsSingle = ({ data, children }) => {
8686
</Row>
8787
</div>
8888
{frontmatter.source_url ? (
89-
<div style={{ display: "flex", textDecoration: "italic" }}>
89+
<div style={{ display: "flex", fontStyle: "italic" }}>
9090
<h5>
9191
Originally published on{" "}
9292
<a
@@ -100,7 +100,7 @@ const NewsSingle = ({ data, children }) => {
100100
</div>
101101
) : (
102102
frontmatter.eurl && (
103-
<div style={{ display: "flex", textDecoration: "italic" }}>
103+
<div style={{ display: "flex", fontStyle: "italic" }}>
104104
<h5>
105105
Read the full article on{" "}
106106
<a

0 commit comments

Comments
 (0)