Static Page
About Page
Section titled “About Page”File: src/pages/about/index.md
- Go to src/pages/
- Create new folder about
- Inside about create file index.md
- Add code:
layout: ../../design/page.astro title: “About Us” description: “About us page description”
Section titled “layout: ../../design/page.astro title: “About Us” description: “About us page description””About Us
Section titled “About Us”Your content here. You can write markdown.
- Save file
- Visit localhost:4321/about/
- Done!
How to Create Other Static Page
Section titled “How to Create Other Static Page”Same method.
-
For privacy page - src/pages/privacy/index.md = /privacy/
-
For terms page - src/pages/terms/index.md = /terms/
-
For services page - src/pages/services/index.md = /services/
-
Copy about folder
-
Rename folder
-
Edit title and description in frontmatter
-
Edit content
-
Save
Frontmatter
Section titled “Frontmatter”layout: ../../design/page.astro title: “Your Title” description: “Your description for SEO”
Section titled “layout: ../../design/page.astro title: “Your Title” description: “Your description for SEO””- layout must be ../../design/page.astro
- title - for SEO and H1
- description - for SEO meta description