How should routing/navigation be handled when converting this into a multi-page static site? #11
-
|
I’m planning to refactor this template into a multi-page setup instead of a single-page layout. Before I do that, I want to understand the intended structure: Should each page be a full HTML duplicate with shared components manually synced? I’m trying to avoid breaking navigation or asset loading when moving away from a single entry point, so any guidance on best practices with this template would help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
✅ Converting to Multi-Page Static Site – Quick Guide
Duplicate index.html for every new page (about.html, services.html, contact.html, etc.)
Test locally using npx serve or VS Code Live Server This keeps navigation clean and prevents broken assets when moving away from the single-page setup. |
Beta Was this translation helpful? Give feedback.

✅ Converting to Multi-Page Static Site – Quick Guide
Here's the recommended approach for refactoring this template:
Each page should be a complete standalone HTML file.
Duplicate index.html for every new page (about.html, services.html, contact.html, etc.)
Keep the full , navbar, footer, and scripts in every file
Remove content that doesn't belong on that specific page
- Navigation
- Asset Paths (Important)
<script s…Update your navbar links to point to real pages instead of sections:
HTML
Home
About
Services
Contact
Remove any JavaScript that was handling smooth scrolling between sections.
Use root-relative paths for all CSS, JS, and images so they work from any page:
HTML