simple-blog/views/home.ejs
2021-06-21 21:17:25 -04:00

19 lines
356 B
Text

<%- include("partials/header"); -%>
<h1>Welcome to The Project Mind.</h1>
<p> <%= startingContent %> </p>
<% posts.forEach(function(post){ %>
<h1><%=post.title%></h1>
<p>
<%=post.content.substring(0, 100) + " ..."%>
<a href="/posts/<%=post.title%>">Read More</a>
</p>
<% }) %>
<%- include("partials/footer"); -%>