added blog home page

This commit is contained in:
DeaDvey 2023-12-12 08:10:33 +00:00
parent 0bf1eec968
commit fa6cb2f781
4 changed files with 15 additions and 6 deletions

6
blog/index.html Normal file
View File

@ -0,0 +1,6 @@
<div id="main">
Welcome to the blog page!
</div>
<script src="../template.js">
</script>

View File

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View File

@ -1,8 +1,8 @@
<div id="main">
<h1>Bonjour</h1>
Welcome to my personal website! I hope you have a good time<br/>
Feel free to click the links above for more content!<br/>
Also, see below for links to my other situations<br/>
Feel free to click the links above for more content!<br/>
Also, see below for links to my other situations<br/>
<ol>
Internal:
<li><a href="theunderlandcouk" >theunderland webpages (internal link)</a></li>

View File

@ -4,21 +4,24 @@ let divText = div.innerHTML;
console.log(divText);
let newPageHTML = `
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>DeaDvey's Domain</title>
<icon src="deadvey-icon-circle.ico"></icon>
<link rel="stylesheet" type="text/css" href="index.css">
<link rel="icon" href="../favicon.png">
<link rel="stylesheet" type="text/css" href="http://deadvey.com/index.css">
</head>
<body>
<div class="header main">
<img class="header-image" /><br/><a href="https://deadvey.xyz">Home page</a> <a href="../blog">Blogs</a> <a href="../videos">Videos</a><hr/>
<img class="header-image" /><br/><a href="http://deadvey.com">Home page</a> <a href="blog/index.html">Blogs</a> <a href="videos/index.html">Videos</a><hr/>
</div>
<div class="main">
${divText}
</div>
<div class="footer">
</div>
</body>`
</body>
</html>`
document.body.innerHTML = newPageHTML