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