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">
|
<div id="main">
|
||||||
<h1>Bonjour</h1>
|
<h1>Bonjour</h1>
|
||||||
Welcome to my personal website! I hope you have a good time<br/>
|
Welcome to my personal website! I hope you have a good time<br/>
|
||||||
Feel free to click the links above for more content!<br/>
|
Feel free to click the links above for more content!<br/>
|
||||||
Also, see below for links to my other situations<br/>
|
Also, see below for links to my other situations<br/>
|
||||||
<ol>
|
<ol>
|
||||||
Internal:
|
Internal:
|
||||||
<li><a href="theunderlandcouk" >theunderland webpages (internal link)</a></li>
|
<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);
|
console.log(divText);
|
||||||
|
|
||||||
let newPageHTML = `
|
let newPageHTML = `
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8"/>
|
<meta charset="UTF-8"/>
|
||||||
<title>DeaDvey's Domain</title>
|
<title>DeaDvey's Domain</title>
|
||||||
<icon src="deadvey-icon-circle.ico"></icon>
|
<link rel="icon" href="../favicon.png">
|
||||||
<link rel="stylesheet" type="text/css" href="index.css">
|
<link rel="stylesheet" type="text/css" href="http://deadvey.com/index.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="header main">
|
<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>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
${divText}
|
${divText}
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
</div>
|
</div>
|
||||||
</body>`
|
</body>
|
||||||
|
</html>`
|
||||||
|
|
||||||
document.body.innerHTML = newPageHTML
|
document.body.innerHTML = newPageHTML
|
||||||
|
Loading…
Reference in New Issue
Block a user