simple-blog/views/home.ejs
2021-06-22 07:13:08 -04:00

19 lines
364 B
Text

<%- include("partials/header"); -%>
<h1>Welcome to a simple full stack blog.</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"); -%>