hexo-theme-stellar/layout/topic.ejs

28 lines
889 B
Plaintext
Raw Normal View History

2024-01-14 14:10:36 +08:00
<%
if (page.menu_id == undefined) {
page.menu_id = 'post'
}
if (page.title == undefined) {
2024-01-14 16:42:20 +08:00
page.title = __('btn.topic')
2024-01-14 14:10:36 +08:00
}
function layoutTitle() {
const title = page.h1 != null ? page.h1 : page.title;
if (title && title.length > 0) {
return '<h1 class="article-title"><span>' + title + '</span></h1>';
} else {
return '';
}
}
%>
2024-01-14 16:42:20 +08:00
<%- partial('_partial/main/navbar/breadcrumb') %>
<article class='md-text content <%- page.layout %><%- page.indent ? ' indent' : '' %><%- scrollreveal() %>'>
<%- layoutTitle() %>
<%- markdown(page.content) %>
<% if (theme.plugins.tianli_gpt.enable && ['all', 'topic'].includes(theme.plugins.tianli_gpt.field)) { %>
<%- partial('_partial/plugins/ai/tianli_gpt') %>
2024-01-14 14:10:36 +08:00
<% } %>
2024-01-14 16:42:20 +08:00
<%- partial('_partial/main/article/article_footer') %>
</article>
<%- partial('_partial/main/article/read_next') %>
<%- partial('_partial/plugins/comments/layout') %>