hexo-theme-stellar/layout/page.ejs

21 lines
631 B
Plaintext
Raw Normal View History

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 '';
}
}
%>
<% if (page.h1 || page.title || (page.content && page.content.length > 0)) { %>
2021-02-20 13:09:41 +08:00
<%- partial('_partial/main/navbar/breadcrumb') %>
2022-05-29 13:42:34 +08:00
<article class='content md <%- page.layout %><%- page.indent ? ' indent' : '' %><%- scrollreveal() %>'>
2021-02-22 13:19:21 +08:00
<%- layoutTitle() %>
2021-02-19 23:33:19 +08:00
<% if (page.content && page.content.length > 0) { %>
<%- page.content %>
<% } %>
</article>
<% } %>
<%- partial('_partial/plugins/comments/layout') %>