category.ejs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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/header.css">
  12. <link rel="stylesheet" href="/stylesheets/category.css">
  13. </head>
  14. <!-- Google tag (gtag.js) -->
  15. <script async src="https://www.googletagmanager.com/gtag/js?id=G-JBGGVGLHTP"></script>
  16. <script>
  17. window.dataLayer = window.dataLayer || [];
  18. function gtag() { dataLayer.push(arguments); }
  19. gtag('js', new Date());
  20. gtag('config', 'G-JBGGVGLHTP');
  21. </script>
  22. <body>
  23. <%- include('header') %>
  24. <div class="category">
  25. <% categories.forEach(item=> { %>
  26. <a href="/<%= lang %>/category/<%= item.id %>" class="<%= tag == item.id ? 'selected' : '' %>">
  27. <%= item[lang] %>
  28. </a>
  29. <% }); %>
  30. <a href="/<%= lang %>/tag" style="color: #ff4081">
  31. <%= translate.more[lang] %>>>>
  32. </a>
  33. </div>
  34. <div class="content">
  35. <div class="image-grid">
  36. <% data.forEach(item=> { %>
  37. <a href="<%= item.uri %>"><img src="<%= item.thumb %>"
  38. alt="<%= item.title %> | <%= translate.printableColoringPage[lang]%>"></a>
  39. <% }); %>
  40. </div>
  41. </div>
  42. <%- include('pagination') %>
  43. </body>
  44. </html>