-
Notifications
You must be signed in to change notification settings - Fork 1
/
about.ejs
34 lines (32 loc) · 871 Bytes
/
about.ejs
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
<%-include('./partials/header.ejs') %>
<title>Document|<%=home%></title>
</head>
<body>
<nav>
<a href="/home">Home Page</a>
<a href="/about">About Page</a>
</nav>
<h1>Welcome to the About page</h1>
<table>
<tr>
<th>Title</th>
<th>Snippet</th>
<th>Body</th>
<th>Edit</th>
<th>Snippet</th>
<th>Snt</th>
<th>cody</th>
<th>Edit new form</th>
</tr>
<%for(var i=0;i<blog.length;i++) {%>
<tr>
<td><%=blog[i].title%></td>
<td><%=blog[i].snippet%></td>
<td><%=blog[i].body%></td>
<td> <a href="/blogs/<%=blog[i]._id%>">Edit</a></td>
</tr>
<%}%>
</table>
<%-include('./partials/footer.ejs') %>
</body>
</html>