30 lines
809 B
Plaintext
Executable File
30 lines
809 B
Plaintext
Executable File
<%
|
|
if (page.menu_id == undefined) {
|
|
page.menu_id = 'post';
|
|
}
|
|
if (page.header == undefined) {
|
|
page.header = false;
|
|
}
|
|
function layoutTitle() {
|
|
if (page.layout == 'post' && page.banner && page.title) {
|
|
return '';
|
|
}
|
|
const title = page.h1 || page.title;
|
|
if (title && title.length > 0) {
|
|
return '<h1 class="article-title"><span>' + title + '</span></h1>';
|
|
} else {
|
|
return '';
|
|
}
|
|
}
|
|
%>
|
|
<% let post = page; %>
|
|
<%- partial('_partial/main/navbar/breadcrumb') %>
|
|
<article class='content md <%- post.layout %><%- scrollreveal() %>'>
|
|
<%- layoutTitle() %>
|
|
<%- post.content %>
|
|
<%- partial('_partial/main/article/article_footer') %>
|
|
</article>
|
|
<%- partial('_partial/main/article/read_next') %>
|
|
<%- partial('_partial/main/article/related_posts') %>
|
|
<%- partial('_partial/plugins/comments/layout') %>
|