26 lines
800 B
Text
26 lines
800 B
Text
|
<% if(is_page() && page.layout == "docs-page") { %>
|
||
|
<aside class="sidenav">
|
||
|
<div class="sidenav-contents">
|
||
|
<a href="/"><b>Return to the main page</b></a>
|
||
|
<%- toc(page.content, {min_depth: 2, max_depth: 3, list_number: false}) %>
|
||
|
</div>
|
||
|
</aside>
|
||
|
<% } %>
|
||
|
<% if(!(is_home() || page.layout == 'index-page' || page.layout == 'error-page')) { %>
|
||
|
<div class="content">
|
||
|
<% if(!(is_page() && page.layout == "docs-page")) { %>
|
||
|
<main class="real-content">
|
||
|
<% } else { %>
|
||
|
<main>
|
||
|
<% } %>
|
||
|
<% if(is_page() && page.layout == "docs-page") { %>
|
||
|
<a href="/" class="hideinprint">Return to the main page</a>
|
||
|
<% } %>
|
||
|
<h1><%= page.title %></h1>
|
||
|
<% } %>
|
||
|
<%- page.content %>
|
||
|
<% if(!(is_home() || page.layout == 'index-page' || page.layout == 'error-page')) { %>
|
||
|
</main>
|
||
|
</div>
|
||
|
<% } %>
|