category.ejs 767 B

12345678910111213141516171819202122232425262728293031
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <%- include('head') %>
  5. <link rel="stylesheet" href="/stylesheets/category.css">
  6. </head>
  7. <body>
  8. <%- include('header') %>
  9. <div class="category">
  10. <% categories.forEach(item => { %>
  11. <a href="/<%= lang %>/category/<%= item.id %>" class="<%= tag == item.id ? 'selected' : '' %>"><%= item[lang] %></a>
  12. <% }); %>
  13. <a href="/<%= lang %>/tag" style="color: #ff4081"><%= translate.more[lang] %>>>></a>
  14. </div>
  15. <div class="content">
  16. <div class="image-grid">
  17. <% data.forEach(item => { %>
  18. <a href="/<%= lang %>/detail/<%= item._id %>"><img src="<%= item.thumb %>" alt="<%= item.name %>" ></a>
  19. <% }); %>
  20. </div>
  21. </div>
  22. <%- include('pagination') %>
  23. </body>
  24. </html>