Skip to content

Commit

Permalink
Rename /news pathname to /blog
Browse files Browse the repository at this point in the history
  • Loading branch information
gvidon authored and tgraf committed Dec 18, 2020
1 parent 8b560a0 commit 9f7ceaa
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ module.exports = {
}
}
`,
output: "/news/rss.xml",
title: "eBPF.io / News"
output: "/blog/rss.xml",
title: "eBPF.io / Blog"
}
]
}
Expand Down
12 changes: 6 additions & 6 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ exports.createPages = ({ actions, graphql }) => {
createPaginatedPages({
createPage,
edges,
pageTemplate: path.resolve(`src/templates/news.js`),
paginatePost: "/news", // old field. not remove
pathPrefix: "/news", // new field. not remove
pageTemplate: path.resolve(`src/templates/blog.js`),
paginatePost: "/blog", // old field. not remove
pathPrefix: "/blog", // new field. not remove
pageLength: 8
});

Expand All @@ -131,9 +131,9 @@ exports.createPages = ({ actions, graphql }) => {
createPaginatedPages({
createPage,
edges: filteredEdges,
pageTemplate: path.resolve(`src/templates/news.js`),
paginatePost: `/news/tags/${tag}`, // old field. not remove
pathPrefix: `/news/tags/${tag}`, // new field. not remove
pageTemplate: path.resolve(`src/templates/blog.js`),
paginatePost: `/blog/tags/${tag}`, // old field. not remove
pathPrefix: `/blog/tags/${tag}`, // new field. not remove
pageLength: 8
});
});
Expand Down
6 changes: 3 additions & 3 deletions src/layouts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const HeaderDesktop = () => (
</Link>
<nav className="headerNav">
<Link to="/what-is-ebpf">What is eBPF?</Link>
<Link to="/news">Blog</Link>
<Link to="/blog">Blog</Link>
<Link to="/projects">Projects</Link>
<a href="/slack">Slack</a>
<Link to="/contribute">Contribute</Link>
Expand Down Expand Up @@ -62,7 +62,7 @@ class HeaderMobile extends React.Component {
{opened && (
<nav className="headerNav">
<Link to="/what-is-ebpf">What is eBPF?</Link>
<Link to="/news">Blog</Link>
<Link to="/blog">Blog</Link>
<Link to="/projects">Projects</Link>
<a href="/slack">Slack</a>
<Link to="/contribute">Contribute</Link>
Expand All @@ -83,7 +83,7 @@ const FooterDesktop = () => (
<Link to="/what-is-ebpf" className="item">
What is eBPF?
</Link>
<Link to="/news" className="item">
<Link to="/blog" className="item">
Blog
</Link>
<Link to="/projects" className="item">
Expand Down
File renamed without changes.

0 comments on commit 9f7ceaa

Please sign in to comment.