album.ejs 7.9 KB

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