<% if (page.menu_id == undefined) { page.menu_id = 'post' } if (page.layout == undefined) { page.layout = 'index_topic' } if (page.title == undefined) { page.title = __('btn.wiki') } function layoutTitle() { const title = page.h1 != null ? page.h1 : page.title; if (title && title.length > 0) { return '

' + title + '

'; } else { return ''; } } %> <% if (page.layout === 'index_topic') { %> <%- partial('index') %> <% } else { %> <% if (page.header == undefined) { page.header = 'auto'; } %> <%- partial('_partial/main/navbar/breadcrumb') %>
<%- 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') %> <% } %> <%- partial('_partial/main/article/article_footer') %>
<%- partial('_partial/main/article/read_next') %> <%- partial('_partial/plugins/comments/layout') %> <% } %>