forked from mgediya/scss-with-gulp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_sitemap.html
66 lines (61 loc) · 2.37 KB
/
_sitemap.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>All | HTML Boilerplate 1.1.1</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="description" content="" />
<meta name="keywords" content="">
<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />
<link rel="icon" type="image/png" href="public/images/favicon.png" />
<!-- main css -->
<link href="public/css/style.css" rel="stylesheet" />
</head>
<body>
<!-- start -->
<div class="wrapper">
<div class="main-container">
<!-- content area part -->
<div class="main-content py-30">
<!-- content area part -->
<section class="container">
<div class="row justify-content-center">
<div class="cell-9">
<!-- header part -->
<div class="pt-50 pb-50">
<h1>All pages URLs</h1>
</div>
<table class="table-bordered">
<tr>
<th>No.</th>
<th>Name of page</th>
<th>Link of page</th>
</tr>
<tr>
<td>Home</td>
<td><a href="index.html"></a></td>
</tr>
<tr>
<td>Typography</td>
<td><a href="typography.html"></a></td>
</tr>
</table>
</div>
</div>
</section>
</div>
</div>
</div>
<script>
let tableTr = document.querySelectorAll('table tr');
for (let i = 1; i < tableTr.length; i++) {
let that = tableTr[i];
let a = that.querySelector('a');
a.innerText = a.getAttribute('href').split('.')[0];
a.setAttribute('target', '_blank');
that.prepend(document.createElement('td'));
that.childNodes[0].innerText = i;
}
</script>
</body>
</html>