This repository has been archived on 2024-09-12. You can view files and clone it, but cannot push or open issues or pull requests.
svrjs-website/themes/svrjswebsite/layout/page.ejs

26 lines
800 B
Text
Raw Normal View History

2024-03-15 21:53:12 +01:00
<% 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>
<% } %>