-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This template file can be used as the backbone for all blog posts
- Loading branch information
1 parent
b6ca9e2
commit b31c9ff
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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">↑</a>  <a class="name" href="credit.html">Credits</a></footer> | ||
</body> | ||
|
||
</html> |