album.ejs 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <link rel="icon" href="/assets/icon/favicon.ico" type="image/x-icon">
  7. <title><%= title %></title>
  8. <meta name="description" content="<%= description %>">
  9. <meta property="og:title" content="<%= title %>">
  10. <meta property="og:description" content="<%= description %>">
  11. <meta property="og:image" content="<%= data.cover %>">
  12. <meta property="og:type" content="website">
  13. <!-- MARK: Universal Link / Android App Link 的核心配置 -->
  14. <!-- 这些 meta 标签的值应该是完整的 HTTPS 链接,Facebook 会识别并尝试拉起 App -->
  15. <meta property="og:url" content="<%= applink %>" />
  16. <!-- **Universal Link 路径** -->
  17. <meta property="al:ios:url" content="<%= applink %>" />
  18. <!-- **Universal Link 路径** -->
  19. <meta property="al:ios:app_store_id" content="1575480118" /> <!-- **iOS App Store ID** -->
  20. <meta property="al:ios:app_name" content="Art Number Coloring Book" /> <!-- **iOS 应用名称** -->
  21. <meta property="al:android:package" content="com.pcoloring.art.puzzle.color.by.number" /> <!-- **Android 包名** -->
  22. <meta property="al:android:url" content="<%= applink %>>" />
  23. <!-- ** Universal Link 路径** -->
  24. <meta property="al:android:app_name" content="Art Number Coloring Book" /> <!-- **Android 应用名称** -->
  25. <meta name="apple-itunes-app" content="app-id=1575480118">
  26. <link rel="stylesheet" href="/stylesheets/v2/styles.css">
  27. <style>
  28. h1 {
  29. text-align: start;
  30. }
  31. p {
  32. font-size: 1.1rem;
  33. }
  34. .breadcrumb {
  35. margin: 20px 0;
  36. font-size: 1.0rem;
  37. color: var(--light-text);
  38. }
  39. .breadcrumb a {
  40. color: var(--primary-color);
  41. text-decoration: none;
  42. }
  43. .breadcrumb a:hover {
  44. text-decoration: underline;
  45. }
  46. .poster-image {
  47. margin-bottom: 20px;
  48. }
  49. .poster-image img {
  50. width: 100%;
  51. height: 100%;
  52. max-height: 350px;
  53. object-fit: cover;
  54. border-radius: 8px;
  55. }
  56. .gallery-link {
  57. text-align: center;
  58. margin-top: 30px;
  59. font-size: 1.2rem;
  60. }
  61. .gallery-link a {
  62. color: var(--primary-color);
  63. text-decoration: none;
  64. font-weight: 600;
  65. display: inline-flex;
  66. align-items: center;
  67. }
  68. .gallery-link a:hover {
  69. text-decoration: underline;
  70. }
  71. .gallery-link svg {
  72. margin-left: 8px;
  73. width: 16px;
  74. height: 16px;
  75. }
  76. .how-to-title {
  77. color: var(--text-color);
  78. font-size: 1.8rem;
  79. margin-bottom: 30px;
  80. text-align: start;
  81. }
  82. .how-to-steps {
  83. display: grid;
  84. grid-template-columns: 1fr;
  85. gap: 30px;
  86. }
  87. .how-to-step {
  88. padding: 25px;
  89. border-radius: 10px;
  90. border: 1px solid #eee;
  91. transition: all 0.3s ease;
  92. }
  93. .how-to-step:hover {
  94. transform: translateY(-5px);
  95. box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  96. }
  97. .step-header {
  98. display: flex;
  99. align-items: center;
  100. margin-bottom: 15px;
  101. }
  102. .step-number {
  103. width: 40px;
  104. height: 40px;
  105. background-color: var(--primary-color);
  106. color: white;
  107. border-radius: 50%;
  108. display: flex;
  109. align-items: center;
  110. justify-content: center;
  111. font-size: 1.2rem;
  112. font-weight: 700;
  113. margin-right: 15px;
  114. }
  115. .step-title {
  116. font-size: 1.3rem;
  117. font-weight: 600;
  118. color: var(--text-color);
  119. }
  120. ul {
  121. padding: 20px;
  122. }
  123. ul li {
  124. padding: 10px;
  125. }
  126. li a {
  127. font-size: 1.2rem;
  128. color: var(--secondary-color)
  129. }
  130. @media (max-width: 768px) {
  131. .gallery-link {
  132. font-size: 1rem;
  133. }
  134. .how-to-section {
  135. padding: 25px;
  136. }
  137. .how-to-title {
  138. font-size: 1.5rem;
  139. }
  140. .step-title {
  141. font-size: 1.2rem;
  142. }
  143. }
  144. </style>
  145. <script type="application/ld+json">
  146. {
  147. "@context": "https://schema.org",
  148. "@type": "CollectionPage",
  149. "name": "<%= title %>",
  150. "description": "<%= description %>",
  151. "url": "https://art.pcoloring.com/<%= uri %>",
  152. "mainEntity": {
  153. "@type": "ItemList",
  154. "itemListElement": [
  155. <% data.contents.forEach((item, index)=> { %>
  156. {
  157. "@type": "ListItem",
  158. "position": <%= index+1 %>,
  159. "item": {
  160. "@type": "CreativeWork",
  161. "name": "<%= item.title %>",
  162. "url": "https://art.pcoloring.com<%= item.uri %>",
  163. "image": "https://d2mb6s2cy1zg97.cloudfront.net/thumbs/coloring-page/page/480/<%= item._id %>.webp",
  164. "author": {
  165. "@type": "Person",
  166. "name": "<%= item.user.username %>"
  167. }
  168. }
  169. }<% if(index < data.contents.length - 1){ %>, <%}%>
  170. <% }); %>
  171. ]
  172. }
  173. }
  174. </script>
  175. <script type='text/javascript'
  176. src='https://platform-api.sharethis.com/js/sharethis.js#property=685036ce6c1ae8001abaded7&product=sop'
  177. async='async'></script>
  178. </head>
  179. <!-- Google tag (gtag.js) -->
  180. <script async src="https://www.googletagmanager.com/gtag/js?id=G-JBGGVGLHTP"></script>
  181. <script>
  182. window.dataLayer = window.dataLayer || [];
  183. function gtag() { dataLayer.push(arguments); }
  184. gtag('js', new Date());
  185. gtag('config', 'G-JBGGVGLHTP');
  186. </script>
  187. <body>
  188. <%- include('header') %>
  189. <main class="container">
  190. <div class="breadcrumb">
  191. <a href="/">Home</a> &gt; <a href="/coloring-page-albums">Coloring Pages Albums</a> &gt; <%= data.title%>
  192. </div>
  193. <section>
  194. <h1><%= data.title%></h1>
  195. <h4 style="margin-bottom: 40px;">By Art Number Coloring / <%=data.timeCreate%></h4>
  196. <div class="poster-image">
  197. <img src="<%= data.cover %>" alt="<%= data.title%>">
  198. </div>
  199. <p><%= data.slogon %></p>
  200. </section>
  201. <section>
  202. <h2>
  203. <%= data.title %>
  204. </h2>
  205. <div class="coloring-grid">
  206. <% data.contents.forEach(item=> { %>
  207. <div class="coloring-card">
  208. <div data-content-id="<%= item._id %>" class="coloring-image">
  209. <a href="<%= item.uri %>"><img src="<%= item.thumb %>" alt="<%= item.title %>"></a>
  210. </div>
  211. <div class="coloring-content">
  212. <div class="coloring-title">
  213. <%= item.title %>
  214. </div>
  215. <div class="coloring-author">by <a href="/coloring-page-gallery?author=<%= item.user.username %>">
  216. <%= item.user.username %>
  217. </a></div>
  218. <div class="coloring-meta">
  219. <div class="date">
  220. <%= item.publishTime %>
  221. </div>
  222. <div class="views">
  223. <%= item.totalStartCount ? item.totalStartCount : 0 %>
  224. </div>
  225. </div>
  226. <div class="coloring-tags">
  227. <% item.tags.forEach(tag=> { %>
  228. <a href="/coloring-page-gallery?category=<%= tag %>"><span class="tag" data-tag="<%= tag %>">
  229. <%= tag %>
  230. </span></a>
  231. <% }); %>
  232. </div>
  233. </div>
  234. </div>
  235. <% }); %>
  236. </div>
  237. <div class="gallery-link">
  238. <a href="/coloring-page-gallery?category=<%= data.tag%>">
  239. More coloring pages please visit: <strong style="margin-left: 10px;"> Coloring Page Gallery</strong>.
  240. <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  241. <path d="M13 5L19 12L13 19" stroke="currentColor" stroke-width="2" stroke-linecap="round"
  242. stroke-linejoin="round" />
  243. </svg>
  244. </a>
  245. </div>
  246. </section>
  247. <%- include('tips-get-use-of-our-coloring-pages') %>
  248. <%- include('comment') %>
  249. </main>
  250. <%- include('footer') %>
  251. <script src="/scripts/script.js"></script>
  252. <script src="/scripts/progress2.js"></script>
  253. </body>
  254. </html>