2022-10-30 00:15:04 +08:00
|
|
|
<%
|
|
|
|
const { type: p_type, title: p_title, content: p_content, comment: p_comment } = page
|
|
|
|
const { menu: t_menu, links: t_links } = theme
|
|
|
|
%>
|
2021-01-29 15:06:06 +08:00
|
|
|
<div class="fade-in-down-animation">
|
|
|
|
<div class="page-template-container">
|
|
|
|
<%
|
2022-10-30 00:15:04 +08:00
|
|
|
const isLoadFriendsLink = (
|
|
|
|
t_menu?.Links
|
|
|
|
&& t_links
|
|
|
|
&& (p_type === 'links' || p_type === 'link' || p_title === 'links' || p_title === 'link')
|
|
|
|
)
|
2021-01-29 15:06:06 +08:00
|
|
|
%>
|
|
|
|
<% if (isLoadFriendsLink) { %>
|
|
|
|
<%- partial('_partial/friends-link') %>
|
|
|
|
<% } %>
|
2022-10-16 00:44:40 +08:00
|
|
|
<div class="page-template-content keep-markdown-body">
|
2022-10-30 00:15:04 +08:00
|
|
|
<% if (isLoadFriendsLink || p_content) { %>
|
|
|
|
<%- p_content %>
|
2021-01-29 15:06:06 +08:00
|
|
|
<% } else { %>
|
2022-10-30 00:15:04 +08:00
|
|
|
<h1><%- p_title %></h1>
|
2021-01-29 15:06:06 +08:00
|
|
|
<% } %>
|
|
|
|
</div>
|
2022-10-30 00:15:04 +08:00
|
|
|
<% if (p_comment === true) { %>
|
|
|
|
<div class="page-template-comments">
|
2021-01-29 15:06:06 +08:00
|
|
|
<%- partial('_partial/comment/comment') %>
|
2022-10-30 00:15:04 +08:00
|
|
|
</div>
|
|
|
|
<% } %>
|
2021-01-29 15:06:06 +08:00
|
|
|
</div>
|
|
|
|
</div>
|