tag.ejs 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!DOCTYPE html>
  2. <html lang="<%= lang %>">
  3. <head>
  4. <%- include('common-meta') %>
  5. <link rel="stylesheet" href="/stylesheets/styles.css">
  6. <link rel="stylesheet" href="/stylesheets/header.css">
  7. <% if (data.length> 0) { %>
  8. <script type="application/ld+json">
  9. {
  10. "@context": "https://schema.org",
  11. "@type": "WebPage",
  12. "name": "<%= title %>",
  13. "description": "<%= description %>",
  14. "url": "https://art.pcoloring.com<%= uri %>",
  15. "mainEntityOfPage": "https://art.pcoloring.com<%= uri %>",
  16. "publisher": {
  17. "@type": "Organization",
  18. "name": "JCCY",
  19. "logo": {
  20. "@type": "ImageObject",
  21. "url": "https://art.pcoloring.com/assets/icon/icon.webp"
  22. }
  23. },
  24. "image": "<%= data[0].thumb %>",
  25. "thumbnailUrl": "<%= data[0].thumb %>",
  26. "keywords": "coloring pages tags, girl coloring page, animal coloring page, flower coloring page, fish coloring page, bird coloring page, printable, free coloring pages, art, color by number, paint by number",
  27. "contentRating": "General Audience",
  28. "hasPart": [
  29. <% for(let i = 0; i < Math.min(6, data.length); i++) { %>
  30. {
  31. "@type": "ImageObject",
  32. "name": "<%= data[i].title %>",
  33. "url": "https://art.pcoloring.com<%= data[i].uri %>",
  34. "contentUrl": "<%= data[i].thumb %>",
  35. "thumbnailUrl": "<%= data[i].thumb %>",
  36. "height": "480",
  37. "width": "480"
  38. }<%= i < Math.min(6, data.length) - 1 ? ',' : '' %>
  39. <% }; %>
  40. ]
  41. }
  42. </script>
  43. <% } %>
  44. </head>
  45. <!-- Google tag (gtag.js) -->
  46. <script async src="https://www.googletagmanager.com/gtag/js?id=G-JBGGVGLHTP"></script>
  47. <script>
  48. window.dataLayer = window.dataLayer || [];
  49. function gtag() { dataLayer.push(arguments); }
  50. gtag('js', new Date());
  51. gtag('config', 'G-JBGGVGLHTP');
  52. </script>
  53. <body>
  54. <%- include('header') %>
  55. <h1 style="display: flex; justify-content: center; padding: 10px; color: purple">
  56. <%= h1title %>
  57. </h1>
  58. <% if (tag !='latest' ) { %>
  59. <div class="content">
  60. <div class="image-grid">
  61. <% data.forEach(item=> { %>
  62. <div data-content-id="<%= item._id %>" class="image-card">
  63. <a href="<%= item.uri %>"><img src="<%= item.thumb %>" alt="<%= item.title %>"></a>
  64. <div class="card-title">
  65. <%= item.title %>
  66. </div>
  67. </div>
  68. <% }); %>
  69. </div>
  70. </div>
  71. <%- include('pagination') %>
  72. <% } %>
  73. <div class="tag-cloud">
  74. <% tags.forEach(item=> { %>
  75. <a href="/<%= lang %>/tag/<%= item.tag %>" class="tag <%= item.tag == tag ? 'selected' : '' %>"
  76. style="color: <%= item.color %>;">
  77. <%= item.title[lang] %>
  78. </a>
  79. <% }); %>
  80. </div>
  81. <script src="/scripts/progress.js"></script>
  82. </body>
  83. </html>