added blog home page
This commit is contained in:
parent
0bf1eec968
commit
fa6cb2f781
6
blog/index.html
Normal file
6
blog/index.html
Normal file
@ -0,0 +1,6 @@
|
||||
<div id="main">
|
||||
Welcome to the blog page!
|
||||
</div>
|
||||
|
||||
<script src="../template.js">
|
||||
</script>
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
@ -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>
|
||||
|
11
template.js
11
template.js
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user