albums.ejs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!DOCTYPE html>
  2. <html lang="<%= lang %>">
  3. <head>
  4. <%- include('common-meta') %>
  5. <link rel="alternate" href="https://art.pcoloring.com/en/albums" hrefLang="en" />
  6. <link rel="alternate" href="https://art.pcoloring.com/zh/albums" hrefLang="zh" />
  7. <link rel="alternate" href="https://art.pcoloring.com/es/albums" hrefLang="es" />
  8. <link rel="alternate" href="https://art.pcoloring.com/pt/albums" hrefLang="pt" />
  9. <link rel="alternate" href="https://art.pcoloring.com/ja/albums" hrefLang="ja" />
  10. <link rel="stylesheet" href="/stylesheets/styles.css">
  11. <link rel="stylesheet" href="/stylesheets/header.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.allAlbums[lang] %>
  25. </h1>
  26. <div class="content">
  27. <div class="album-grid">
  28. <% data.forEach(album=> { %>
  29. <div class="album-grid-card">
  30. <a href="/<%= lang %>/album/<%= album._id %>"><img src="<%= album.cover %>" class="album-cover-img"
  31. alt="<%= album.title %> | <%= translate.coloringPageAlbum[lang] %>"></a>
  32. <div style="padding: 0px 0px 4px 4px; font-size: 14px;">
  33. <%= album.title %>
  34. </div>
  35. </div>
  36. <% }); %>
  37. </div>
  38. </div>
  39. </body>
  40. </html>