Whether your website has thousands of pages or just one, it likely needs lists of links to navigate within or away from your website.
This example project shows a simple way to manage navigation menus in Prismic with Next.js.
See the full guide on Prismic's documentation website.
npx degit prismicio-community/how-to-nextjs-navigation how-to-nextjs-navigation
cd how-to-nextjs-navigation
npx @slicemachine/init@latest
The commands will do the following:
- Start a new Next.js project using this example.
- Ask you to log in to Prismic or create an account.
- Create a new Prismic content repository with sample content.
When you're ready to start your project, run the following command:
npm run dev
To learn more about the example, see the full guide on Prismic's documentation website.
Copyright 2013-2022 Prismic <contact@prismic.io> (https://prismic.io)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.