blog/themes/fluid/layout/page.ejs

19 lines
615 B
Plaintext
Raw Normal View History

2024-11-16 11:34:10 +08:00
<%
var layout = page.layout
page.title = page.title || __(`${ layout }.title`)
page.subtitle = page.subtitle || page.title || __(`${ layout }.subtitle`)
page.banner_img = page.banner_img || theme.page.banner_img
page.banner_img_height = page.banner_img_height || theme.page.banner_img_height
page.banner_mask_alpha = page.banner_mask_alpha || theme.page.banner_mask_alpha
%>
<article class="page-content">
<%- page.content %>
<%- inject_point('pageComments') %>
</article>
<% if (/<[^>]+? class="[^"]*?markdown-body[^"]*?"/gims.test(page.content)) { %>
<%- partial('_partials/markdown-plugins') %>
<% } %>