-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ejs
69 lines (53 loc) · 1.98 KB
/
index.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
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
67
68
<!-- Header PArt -->
<!-- ************************************************* -->
<!DOCTYPE html>
<html>
<head>
<title>Blog</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css">
<link rel="stylesheet" type="text/css" href="/stylesheet/app.css">
<!-- <style type="text/css"></style> -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
</head>
<body>
<!-- ******************************** HEader Ends************************************** -->
<!-- Navbar -->
<!-- ================================================================ -->
<div class="ui fixed inverted menu">
<div class="ui container">
<div class="header item">
<i class="rss icon"></i>Blog Site
</div>
<a class="item" href="/blogs">Home</a>
<a class="item" href="/blogs/new">New Post</a>
<a class="item" href="/login">Login</a>
<a class="item" href="/register">Sign Up</a>
<a class="item" href="/logout">Logout</a>
</div>
</div>
<!-- *********************** Navbar Ends***************************************** -->
<div id="mainContainer" class="holder">
<%=cu%>
<%Blog.forEach(function(Blog){%>
<div class="container mt-5 border border-dark">
<h2 style="color: rgb(86, 215, 247);">
<%=Blog.title%>
</h2>
<img src="<%=Blog.image%>">
<div class= name>
<h2 style="color: rgb(250, 6, 6);">
By:- <%=Blog.uname%>
</h2>
<a href="/blogs/<%=Blog._id%>" class="btn btn-primary">Show more</a>
</div>
</div>
<%})%>
</div>
<div class ="foot">
<h1 style="color: rgb(247, 242, 0);">Gotcha !! You HAve Reched The End </h1>
</div>
<!--
Footer PArt
=========================================== -->
</body>
</html>