tag.ejs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!DOCTYPE html>
  2. <html lang="<%= lang %>">
  3. <head>
  4. <%- include('common-meta') %>
  5. <link rel="alternate" href="https://art.pcoloring.com/en/tag" hrefLang="en" />
  6. <link rel="alternate" href="https://art.pcoloring.com/zh/tag" hrefLang="zh" />
  7. <link rel="alternate" href="https://art.pcoloring.com/es/tag" hrefLang="es" />
  8. <link rel="alternate" href="https://art.pcoloring.com/pt/tag" hrefLang="pt" />
  9. <link rel="alternate" href="https://art.pcoloring.com/ja/tag" hrefLang="ja" />
  10. <link rel="stylesheet" href="/stylesheets/styles.css">
  11. <link rel="stylesheet" href="/stylesheets/tag.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. <h1 style="display: flex; justify-content: center; padding: 10px; color: purple">
  24. <%= translate.selectByTag[lang] %>
  25. </h1>
  26. <div class="content">
  27. <div class="image-grid">
  28. <% data.forEach(item=> { %>
  29. <a href="<%= item.uri %>"><img src="<%= item.thumb %>"
  30. alt="<%= item.title %> | <%= translate.printableColoringPage[lang]%>"></a>
  31. <% }); %>
  32. </div>
  33. </div>
  34. <%- include('pagination') %>
  35. <div class="tag-cloud">
  36. <% tags.forEach(item=> { %>
  37. <a href="/<%= lang %>/tag/<%= item.tag %>" class="tag <%= item.tag == tag ? 'selected' : '' %>"
  38. style="color: <%= item.color %>;">
  39. <%= item.tag %>
  40. </a>
  41. <% }); %>
  42. </div>
  43. </body>
  44. </html>