Build your first website · Lesson 06

Create & Organize
Website Pages.

Learn how pages work, connect them with clear navigation, and organize your website your way. The tools create possibilities; you make the creative decisions.

Complete beginner70–75 minutesNo coding required
A photography portfolio expanding from one responsive homepage into organized gallery, information and contact pages
Lesson 06Give every page a clear purpose

Your goal

One website.
Your structure.

Discover the difference between pages and sections, create or improve content with Codex, connect destinations, and review every change before it reaches visitors.

A simple website architecture

Your websiteOne coherent system
01HomeIntroduction
02ProjectsPhotography
03AboutYour story
04ContactGet in touch
Create or improve a pageOrganize its contentConnect the navigationReview and publish safely

No fixed template. A one-page website and a multi-page website can both work. Choose the structure that supports your photographs and your visitors.

01

10 minutes

Understand Pages & Sections

A page has its own address. A section is one part of the content inside that page.

PAGE

A destination

yourwebsite.com/project

Visitors can open it directly using a specific web address.

SECTION

An area inside a page

Introduction · Images · Information

Several sections can live together without needing separate addresses.

One project, two valid choices

AExisting page+ Project section
or
BSeparate page/project
Practice · Explore your website

Look before you change anything.

  1. Find the homepage.
  2. Identify any other pages.
  3. Notice the sections inside a page.
  4. Follow the links between them.

Checkpoint

02

15 minutes

Create or Modify a Page

Continue inside zia-portfolio. First understand the existing project; then choose one useful change.

Explore before editing

“Show me how Astro creates website pages. Explain simply without changing anything.”

OPTION A

Create a page

Use this when a subject deserves its own destination.

“Create a page called My Projects for my photography projects. Keep the existing style and don’t change other pages.”
OPTION B

Modify a page

Use this when your current structure already works.

“Help me improve my homepage introduction without changing the other sections.”

Three things that can be different

01Visible heading

What visitors read

My Photography
02Browser title

What appears in the tab

Photography — Zia
03Page address

How the page opens

/photography

Local first, public later

LOCALlocalhost:4321/projectsPreview on your computer
same path
/projects →
PUBLICyourwebsite.com/projectsVisible after publishing
Start the preview

“Help me start my website preview.”

Checkpoint

03

10 minutes

Work With Page Content

Make one precise change, inspect the result, and understand which files Codex touched.

HHeadingChange the message
▧ImageAdd a photograph
ParagraphEdit the story
↕SectionMove the order
01Change text

“Replace this paragraph with the text I’ll provide.”

02Add an image

“Help me add a photograph to this page.”

03Move content

“Move this section below the next one.”

04Check the impact

“Check whether this change affects any other pages.”

Review the changed files

CHANGED FILESsrc/pages/index.astrosrc/styles/site.css
PREVIOUSCURRENT

You do not need to understand every line. Check which files changed, whether the number feels reasonable, and whether anything looks unexpected. Ask Codex to explain unfamiliar changes.

Checkpoint

04

15 minutes

Understand Links & Navigation

Navigation helps visitors move with confidence—through menus, text links, photographs, or buttons.

Shared elements

ONE SHARED MENU
HOMEPROJECTSCONTACT

When several pages reuse the same element, one edit can update them all. This keeps the website coherent—but it also means you should check more than one page.

Explore the structure

“Show me which parts of my website are shared between pages. Explain simply.”

Navigation improvement

“Add a link to my new page without changing the rest of the design.”

Checkpoint

05

10 minutes

Manage Your Website Structure

As the site grows, distinguish safe content edits from structural changes that need extra care.

LOW IMPACT

Change a heading

The visible title changes; the page address stays the same.

My Work → Selected Projects
CHECK LINKS

Reorganize content

Move sections or images without deleting them.

Section 03 → Position 02
HIGHER IMPACT

Change an address

Old links can break. A redirect may send visitors to the new address.

/work → /projects
HIGHER IMPACT

Remove a page

Content disappears and existing links may lead nowhere.

/old-page → 404
Old address/work
301 redirect →
New address/projects
Before deleting

“Explain what would happen if I removed this page. Don’t change anything.”

Practice · One small improvement

Improve without restructuring everything.

Rename one heading, rearrange one section, or improve one link label. Make the change with Codex, then check the result.

Checkpoint

06

10–15 minutes

Test & Publish Your Changes

Use the publishing route from Lesson 05, with a deliberate check before and after deployment.

Edit→Preview→Test→Review→Commit→Push→Verify online
01 · LOCAL

Test the website

  • Pages open correctly
  • Links reach the right place
  • Images display
  • Content is correct
  • Nothing important disappeared
02 · REVIEW

Inspect the project

  • Build succeeds
  • No broken internal links
  • No unexpected files
  • No passwords or secret keys
  • Changes are understood
03 · LIVE

Verify after publishing

  • Cloudflare deploys successfully
  • Changed pages are online
  • Navigation still works
  • Images and content appear
  • Desktop and resized views work
Quality check

“Check my recent changes for errors, broken internal links, and unexpected modifications. Make sure the website builds correctly.”

Privacy check

“Check whether my changes contain passwords, secret keys, or private information.”

GitHub DesktopReview · Commit · Push
→
CloudflareAutomatic deployment
→
●Live websiteOpen · Test · Confirm

Checkpoint

End of lesson 06

You control the structure.

You can now create and organize pages, connect them with useful navigation, review structural changes, and safely publish an updated website.

PagesSectionsContentLinksStructurePublish
Coming next · Lesson 07Make Your Website Work on Every Screen

Preview desktop, tablet and mobile layouts, identify display problems, and publish responsive improvements.