Has anyone had luck changing the slug for the posts folder? #485
Closed
KeriGerheart
started this conversation in
General
Replies: 1 comment 1 reply
-
Sorry, this was a dumb question. In case anyone else comes across it, the answer was to change postPathBySlug in lib/posts to include the desired folder name. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried copying all the files in the posts folder and changing this:
export default function Posts({ posts, pagination }) { const title =
All Posts; const slug = 'resources';
and
return { props: { posts, pagination: { ...pagination, basePath: '/resources', }, }, }; }
in the [page].js file, but it doesn't seem to work. Has anyone done this successfully and could share what I missed here? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions