Node.js Blog System
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
554 B

  1. <%- include("../head.ejs") %>
  2. <div class="container">
  3. <h1 class="mb-2">Blog</h1>
  4. <% articles.forEach( article => { %>
  5. <div class="item-info mt-4 col-12">
  6. <h3><%= article.title %></h3>
  7. <p class="createdAt text-muted">
  8. <%= article.createdAt.toLocaleString("ru-RU", {dateStyle:"short", timeStyle: "short"}) %> UTC</p>
  9. <p class="description"><%= article.description %></p>
  10. <hr>
  11. <a href="/articles/<%= article.slug %>">Read More</a>
  12. </div>
  13. <% }) %>
  14. </div>
  15. <%- include("../foot.ejs") %>