Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change tag page paths to be under /blog #1261

Merged
merged 1 commit into from
May 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/blog/2020-04-06-april-20-dvc-heartbeat.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ tags:
---

Welcome to the April Heartbeat, our
[monthly roundup of cool happenings](https://dvc.org/tags/heartbeat), good reads
and other bright spots in our community.
[monthly roundup of cool happenings](https://dvc.org/blog/tags/heartbeat), good
reads and other bright spots in our community.

## News

Expand Down
2 changes: 1 addition & 1 deletion src/components/Blog/Post/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const Post: React.FC<IBlogPostData> = ({
<div className={styles.tags}>
{tags.map(tag => (
<Link
href={`/tags/${tagToSlug(tag)}`}
href={`/blog/tags/${tagToSlug(tag)}`}
className={styles.tag}
key={tag}
>
Expand Down
2 changes: 1 addition & 1 deletion src/gatsby/models/blog/createPages.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const createPages = async ({ graphql, actions }) => {

const tagPagesPromise = Promise.all(
_tags.map(({ fieldValue: tag, pageInfo: { itemCount } }) => {
const basePath = `/tags/${tagToSlug(tag)}`
const basePath = `/blog/tags/${tagToSlug(tag)}`

for (const page of pagesGenerator({ basePath, itemCount })) {
actions.createPage({
Expand Down