mirror of
https://git.kh3group.com/georgebiri/khy_website.git
synced 2026-10-16 23:41:46 +00:00
feat: Create template
This commit is contained in:
parent
1b53dc6a20
commit
34d6f638bd
9 changed files with 1325 additions and 0 deletions
82
example-with-partials.html
Normal file
82
example-with-partials.html
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Example with Partials - MySite</title>
|
||||
<link rel="stylesheet" href="styles/main.css" />
|
||||
</head>
|
||||
<body>
|
||||
<!-- Include Header Partial -->
|
||||
<!-- Copy the content from partials/header.html and paste it here -->
|
||||
<header class="site-header">
|
||||
<a class="logo" href="index.html">MySite</a>
|
||||
<nav class="nav">
|
||||
<a href="index.html">Home</a>
|
||||
<a href="about.html">About</a>
|
||||
<a href="services.html">Services</a>
|
||||
<a href="contact.html">Contact</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<section class="page-header">
|
||||
<div class="container">
|
||||
<h1>Example Page with Partials</h1>
|
||||
<p>This shows how to use the shared header and footer partials</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="container">
|
||||
<h2>How to Use Partials</h2>
|
||||
<p>
|
||||
Since you're not using build tools, you'll need to manually copy and
|
||||
paste the partial content into each page. Here's how:
|
||||
</p>
|
||||
|
||||
<div class="instructions">
|
||||
<h3>For Header:</h3>
|
||||
<ol>
|
||||
<li>Open <code>partials/header.html</code></li>
|
||||
<li>Copy the content</li>
|
||||
<li>
|
||||
Paste it at the top of your page's
|
||||
<code><body></code> section
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
<h3>For Footer:</h3>
|
||||
<ol>
|
||||
<li>Open <code>partials/footer.html</code></li>
|
||||
<li>Copy the content</li>
|
||||
<li>
|
||||
Paste it at the bottom of your page's
|
||||
<code><body></code> section
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<div class="benefits">
|
||||
<h3>Benefits of This Approach:</h3>
|
||||
<ul>
|
||||
<li>✅ Consistent header and footer across all pages</li>
|
||||
<li>✅ Easy to maintain - update one file, copy to all pages</li>
|
||||
<li>✅ No build tools required</li>
|
||||
<li>✅ Works with any static hosting</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<!-- Include Footer Partial -->
|
||||
<!-- Copy the content from partials/footer.html and paste it here -->
|
||||
<footer class="site-footer" id="contact">
|
||||
<p>© <span id="year"></span> MySite</p>
|
||||
<a href="mailto:hello@example.com">hello@example.com</a>
|
||||
</footer>
|
||||
|
||||
<script src="scripts/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue