page.ejs 1.3 KB

1234567891011121314151617181920212223242526
  1. <% if (page.type && page.type !== 'page') { %>
  2. <%- partial('partials/sidebar', { only_modules: false, add_taglines: false, type: page.type, index: page.index }) %>
  3. <% } %>
  4. <div class="Content js-Content <%- page.type ? page.type + ' with-sidebar' : '' %>">
  5. <h1><%- page.title %></h1>
  6. <%- page.content %>
  7. <% if (page.subtype === 'plugin-list') { %>
  8. <%- partial('partials/docs_menu', { only_modules: true, add_taglines: true, type: page.type, index: page.index, add_category_ids: true }) %>
  9. <%- partial('partials/plugin_list') %>
  10. <% } %>
  11. <% if (page.type === 'guide') { %>
  12. <div class="guide-links">
  13. <% site.pages.find({ type: page.type, order: page.order - 1 }).each(function (page) { %>
  14. <span>← <a href="<%- url_for(page.path) %>"><%- page.title %></a></span>
  15. <% }) %>
  16. <% site.pages.find({ type: page.type, order: page.order + 1 }).each(function (page) { %>
  17. <span style="float:right"><a href="<%- url_for(page.path) %>"><%- page.title %></a> →</span>
  18. <% }) %>
  19. </div>
  20. <% } %>
  21. <div class="footer">Caught a mistake or want to contribute to the documentation?
  22. <a href="https://github.com/transloadit/uppy/blob/master/website/src/<%- page.source %>" rel="noreferrer noopener" target="_blank">Edit/fork this page directly on Github</a>!
  23. </div>
  24. </div>