2021-02-19 23:33:19 +08:00
|
|
|
<%
|
2021-02-21 03:13:21 +08:00
|
|
|
if (page.menu_id == undefined) {
|
|
|
|
page.menu_id = 'post';
|
2021-02-19 23:33:19 +08:00
|
|
|
}
|
2021-02-20 13:09:41 +08:00
|
|
|
if (page.header == undefined) {
|
|
|
|
page.header = false;
|
|
|
|
}
|
2021-02-22 13:19:21 +08:00
|
|
|
function layoutTitle() {
|
|
|
|
const title = page.h1 || page.title;
|
|
|
|
if (title && title.length > 0) {
|
|
|
|
return '<h1 class="article-title"><span>' + title + '</span></h1>';
|
|
|
|
} else {
|
|
|
|
return '';
|
|
|
|
}
|
|
|
|
}
|
2021-02-19 23:33:19 +08:00
|
|
|
%>
|
|
|
|
<% let post = page; %>
|
2021-02-20 13:09:41 +08:00
|
|
|
<%- partial('_partial/main/navbar/breadcrumb') %>
|
2021-02-22 13:19:21 +08:00
|
|
|
<article class='content md <%- post.layout %><%- scrollreveal() %>'>
|
|
|
|
<%- layoutTitle() %>
|
2021-02-19 23:33:19 +08:00
|
|
|
<%- post.content %>
|
|
|
|
</article>
|
2021-02-20 13:09:41 +08:00
|
|
|
<%- partial('_partial/main/article/references') %>
|
|
|
|
<%- partial('_partial/main/article/read_next') %>
|
|
|
|
<%- partial('_partial/main/article/related_posts') %>
|
2021-02-19 23:33:19 +08:00
|
|
|
<%- partial('_partial/plugins/comments/layout') %>
|