How to custom website pages
Add custom pages
Go to the Sanity Studio, click the Pages
button, and then click the Create
button.
Input the page title, and generate the slug, then click the Publish
button.
After the page is published, you can see the page in the website via the URL /[slug]
.
For example, if the slug is about
, you can see the page in the website via the URL /about
.
You can add About page, Contact page, Privacy page, Terms page, etc, in the Sanity Studio.
Change Home Page
There are 3 home page layouts in Mkdirs template, you can change the default home page layout by the following steps.
-
Remove the 3 files in the
src/app/(website)/(public)/(home)
folder. -
Copy the files in
src/app/(website)/(test)/(home2)
orsrc/app/(website)/(test)/(home3)
folder to thesrc/app/(website)/(public)/(home)
folder.