project.ejs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <% if(page.videos != undefined) { %>
  2. <% if(page.videos.length > 0) { %>
  3. <%- partial('_partial/video-player', {url: page.videos[0].url}) %>
  4. <% } %>
  5. <% } %>
  6. <% if(page.hero != undefined) { %>
  7. <%- partial('_partial/hero', { image : page.hero }) %>
  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. </div>
  50. <%- //partial('_partial/about-author') %>