Vi bruker en liminnbinding med lang levetid til alle bøkene våre, slik at bøkene kan åpnes 180 grader uten problemer.
<% if (previousArticle) { %>
<% } %>
<% if (allItems.length > 1) { %>
<% if (previousTitle) { %>
<% } %>
<% if (nextArticle) { %>
Forrige artikkel
<% } %> <%= previousArticle.title %>
<% if (nextTitle) { %>
<% } %>
Neste artikkel
<% } %> <%= nextArticle.title %>In this article
-
<% allItems.forEach(function(item) { %>
- <%= item.name %> <%= partial('partial-table-of-contents', { items: item.children, partial: partial }) %> <% }); %>
-
<% items.forEach(function(item) { %>
- <%= item.name %> <%= partial('partial-table-of-contents', { items: item.children, partial: partial }) %> <% }); %>