How to Use Partials
Since you're not using build tools, you'll need to manually copy and paste the partial content into each page. Here's how:
For Header:
- Open
partials/header.html - Copy the content
-
Paste it at the top of your page's
<body>section
For Footer:
- Open
partials/footer.html - Copy the content
-
Paste it at the bottom of your page's
<body>section
Benefits of This Approach:
- ✅ Consistent header and footer across all pages
- ✅ Easy to maintain - update one file, copy to all pages
- ✅ No build tools required
- ✅ Works with any static hosting