category.ejs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!DOCTYPE html>
  2. <html lang="<%= lang %>">
  3. <head>
  4. <%- include('common-meta') %>
  5. <link rel="alternate" href="https://art.pcoloring.com/en/category" hrefLang="en" />
  6. <link rel="alternate" href="https://art.pcoloring.com/zh/category" hrefLang="zh" />
  7. <link rel="alternate" href="https://art.pcoloring.com/es/category" hrefLang="es" />
  8. <link rel="alternate" href="https://art.pcoloring.com/pt/category" hrefLang="pt" />
  9. <link rel="alternate" href="https://art.pcoloring.com/ja/category" hrefLang="ja" />
  10. <link rel="stylesheet" href="/stylesheets/styles.css">
  11. <link rel="stylesheet" href="/stylesheets/category.css">
  12. </head>
  13. <!-- Google tag (gtag.js) -->
  14. <script async src="https://www.googletagmanager.com/gtag/js?id=G-JBGGVGLHTP"></script>
  15. <script>
  16. window.dataLayer = window.dataLayer || [];
  17. function gtag() { dataLayer.push(arguments); }
  18. gtag('js', new Date());
  19. gtag('config', 'G-JBGGVGLHTP');
  20. </script>
  21. <body>
  22. <%- include('header') %>
  23. <div class="category">
  24. <% categories.forEach(item=> { %>
  25. <a href="/<%= lang %>/category/<%= item.id %>" class="<%= tag == item.id ? 'selected' : '' %>">
  26. <%= item[lang] %>
  27. </a>
  28. <% }); %>
  29. <a href="/<%= lang %>/tag" style="color: #ff4081">
  30. <%= translate.more[lang] %>>>>
  31. </a>
  32. </div>
  33. <div class="content">
  34. <div class="image-grid">
  35. <% data.forEach(item=> { %>
  36. <a href="<%= item.uri %>"><img src="<%= item.thumb %>"
  37. alt="<%= item.title %> | <%= translate.printableColoringPage[lang]%>"></a>
  38. <% }); %>
  39. </div>
  40. </div>
  41. <%- include('pagination') %>
  42. </body>
  43. </html>