23 lines
569 B
Plaintext
Executable File
23 lines
569 B
Plaintext
Executable File
<%
|
|
if (page.class == undefined) {
|
|
page.class = 'wiki';
|
|
}
|
|
if (page.layout == undefined) {
|
|
page.layout = 'index';
|
|
}
|
|
if (page.title == undefined) {
|
|
page.title = 'Wiki';
|
|
}
|
|
%>
|
|
<% if (page.layout == 'index') { %>
|
|
<%- partial('index') %>
|
|
<% } else { %>
|
|
<%- partial('_partial/navbar/breadcrumb') %>
|
|
<article class='content md <%- page.layout %>'>
|
|
<h1 class='article-title'><span><%- page.h1 || page.title %></span></h1>
|
|
<%- page.content %>
|
|
</article>
|
|
<%- partial('_partial/article/read_next') %>
|
|
<%- partial('_partial/plugins/comments/layout') %>
|
|
<% } %>
|