project.ejs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <% if(page.videos != undefined) { %>
  2. <% if(page.videos.length > 0 && page.hero_image == undefined) { %>
  3. <%- partial('_partial/video-player', {url: page.videos[0].url, is_hero: true}) %>
  4. <% } %>
  5. <% } %>
  6. <% if(page.hero_image != undefined) { %>
  7. <%- partial('_partial/hero', { image : page.hero_image }) %>
  8. <% } %>
  9. <div id="cover"></div>
  10. <div class="project container up-spacer bottom-spacer">
  11. <div class="row">
  12. <div class="col-9">
  13. <% if (page.path){ %>
  14. <h1>
  15. <a href="<%- url_for(page.path) %>" itemprop="url"><%= page.title %></a>
  16. </h1>
  17. <% } else if (page.title){ %>
  18. <h1><%= page.title %></h1>
  19. <% } %>
  20. </div>
  21. <div class="col-3" style="text-align: right; margin-top: 5px;">
  22. <%- partial('_partial/project-dropdown', { links : page.links }) %>
  23. </div>
  24. </div>
  25. <div class="row">
  26. <div class="col-12">
  27. <p style="margin-bottom: 4px;">
  28. <% for (let i = 0; i < page.tags.data.length; i++) { %>
  29. <span class="badge badge-secondary"><%= page.tags.data[i].name %></span>
  30. <% } %>
  31. <i> – <%= timeAgo(new Date(page.date)) %></i>
  32. </p>
  33. <p style="margin-bottom: 4px;">
  34. <%- partial('_partial/project-team', { contact_types : page.contact_types, contacts: page.contacts }) %>
  35. </p>
  36. <hr>
  37. </div>
  38. </div>
  39. <div class="row">
  40. <div class="col-12">
  41. <div class="article-content" itemprop="articleBody">
  42. <%- page.content %>
  43. </div>
  44. </div>
  45. </div>
  46. <% if(page.screenshots != undefined) { %>
  47. <%- partial('_partial/screenshots', { screenshots : page.screenshots }) %>
  48. <% } %>
  49. <% if(page.videos != undefined) { %>
  50. <% if(page.videos.length > 0 && page.hero_image != undefined) { %>
  51. <%- partial('_partial/video-player', {url: page.videos[0].url, is_hero: false}) %>
  52. <% } %>
  53. <% } %>
  54. </div>
  55. <%- //partial('_partial/about-author') %>