page.ejs 992 B

123456789101112131415161718
  1. <% if (page.type) { %>
  2. <%- partial('partials/sidebar', { type: page.type, index: page.index }) %>
  3. <% } %>
  4. <div class="content <%- page.type ? page.type + ' with-sidebar' : '' %>">
  5. <h1><%- page.title %><%- page.type === 'examples' ? ' Example' : '' %></h1>
  6. <%- page.content %>
  7. <% if (page.type === 'guide') { %>
  8. <div class="guide-links">
  9. <% site.pages.find({ type: page.type, order: page.order - 1 }).each(function (page) { %>
  10. <span>← <a href="<%- url_for(page.path) %>"><%- page.title %></a></span>
  11. <% }) %>
  12. <% site.pages.find({ type: page.type, order: page.order + 1 }).each(function (page) { %>
  13. <span style="float:right"><a href="<%- url_for(page.path) %>"><%- page.title %></a> →</span>
  14. <% }) %>
  15. </div>
  16. <% } %>
  17. <div class="footer">Caught a mistake or want to contribute to the documentation? <a href="https://github.com/transloadit/uppy" target="_blank">Fork this site on Github</a>!</div>
  18. </div>