Skip to content

Commit 5fe5b99

Browse files
author
pramod sareddy
committed
add SmartSim option under opensource blog tab
1 parent 650a7ed commit 5fe5b99

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

gatsby-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ module.exports = {
415415
// paginatedCollection('zerto-posts', 'zerto'),
416416
paginatedCollection('aruba-posts', 'aruba'),
417417
paginatedCollection('simplivity-posts', 'hpe-simplivity'),
418-
// paginatedCollection('smartsim-posts', 'smartsim'),
418+
paginatedCollection('smartsim-posts', 'SmartSim'),
419419
paginatedCollection('oneview-posts', 'hpe-oneview'),
420420
paginatedCollection(
421421
'oneview-dashboard-posts',

gatsby-node.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ exports.createPages = async ({ graphql, actions }) => {
199199
const simplivityQueryResult = await graphql(
200200
paginatedCollectionQuery('simplivity-posts'),
201201
);
202-
// const smartsimQueryResult = await graphql(
203-
// paginatedCollectionQuery('smartsim-posts'),
204-
// );
202+
const smartsimQueryResult = await graphql(
203+
paginatedCollectionQuery('smartsim-posts'),
204+
);
205205

206206
const othersQueryResult = await graphql(
207207
paginatedCollectionQuery('others-posts'),
@@ -229,7 +229,7 @@ exports.createPages = async ({ graphql, actions }) => {
229229
setPagination(arubaQueryResult);
230230
setPagination(kubeDirectorQueryResult);
231231
setPagination(simplivityQueryResult);
232-
// setPagination(smartsimQueryResult);
232+
setPagination(smartsimQueryResult);
233233
setPagination(othersQueryResult);
234234

235235
return graphql(

src/components/BlogTabContent/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const BlogTabContent = ({
1616
setPreviousTab,
1717
}) => {
1818
const [latestPage, setLatestPage] = useState(initialPage);
19-
const [blogPosts, setBlogPosts] = useState(initialPage.nodes);
20-
const [collectionId, setCollectionId] = useState(initialPage.collection.id);
19+
const [blogPosts, setBlogPosts] = useState(initialPage?.nodes);
20+
const [collectionId, setCollectionId] = useState(initialPage?.collection?.id);
2121
/* eslint-disable no-unused-vars */
2222
const [activeBlogTab, setActiveBlogTab] = useLocalStorage('activeBlogTab');
2323
const [activePlatform, setActivePlatform] = useLocalStorage('activePlatform');

src/pages/blog/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ export const pageQuery = graphql`
613613
smartSimBlogsCount: allMarkdownRemark(
614614
filter: {
615615
fields: { sourceInstanceName: { eq: "blog" } }
616-
frontmatter: { tags: { eq: "smartsim" }, disable: { ne: true } }
616+
frontmatter: { tags: { eq: "SmartSim" }, disable: { ne: true } }
617617
}
618618
sort: { fields: [frontmatter___date], order: DESC }
619619
) {

0 commit comments

Comments
 (0)