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/post.ejs
2024-03-15 21:53:12 +01:00

21 lines
648 B
Text

<% if(is_current('/404.html') || is_current('/404/')) { %>
<%- partial('_partial/404') %>
<% } else { %>
<% if(is_current('/docs.html') || is_current('/docs/')) { %>
<div 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>
</div>
<% } %>
<div class="content">
<div class="real-content">
<% if(is_current('/docs.html') || is_current('/docs/')) { %>
<a href="/" class="hideinprint">Return to the main page</a>
<% } %>
<h1><%= page.title %></h1>
<%- page.content %>
</div>
</div>
<% } %>