Skip to content

Commit

Permalink
Create template
Browse files Browse the repository at this point in the history
This template file can be used as the backbone for all blog posts
  • Loading branch information
TriAttack238 authored Nov 21, 2024
1 parent b6ca9e2 commit b31c9ff
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions posts/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang = "en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Sean's Website</title>
<link href="style.css" rel="stylesheet" type="text/css">
<script>
// loads header
function loadHeader() {
fetch('nav.html')
.then(response => response.text())
.then(data => {
document.getElementById('replace_with_navbar').outerHTML = data;
});
}
document.addEventListener('DOMContentLoaded', loadHeader);
</script>
</head>
<body>
<div id="replace_with_navbar"></div>

<br><br><br><br><br>
<br>
<!-- headings -->

<h1>Name of post here</h1>
<p>
Put the text here
</p>
<script src="script.js"></script>
<footer><a href="#index.html">&#8593;</a>&emsp;&emsp;<a class="name" href="credit.html">Credits</a></footer>
</body>

</html>

0 comments on commit b31c9ff

Please sign in to comment.