You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

36 lines
960 B

<!DOCTYPE html>
<html>
<%- partial('_partial/head') %>
<body>
<%
var showCover = false;
if (theme.cover) {
// 如果页面的Front-matter声明了cover,就取页面的值
if (page.cover != undefined && page.cover != undefined) {
showCover = page.cover;
} else {
// 否则,如果是首页,只有首页的第一页显示
if (is_home()) {
if (page.prev) {
showCover = false;
} else {
showCover = true;
}
} else {
showCover = true;
}
}
}
%>
<%- partial('_partial/cover', {showCover: showCover}) %>
<div class="l_body<%- showCover ? '' : ' nocover' %>">
<div class='body-wrapper'>
<%- body %>
<script>setLoadingBarProgress(60);</script>
</div>
<a class="s-top fas fa-arrow-up fa-fw" href='javascript:void(0)'></a>
</div>
<%- partial('_partial/scripts') %>
<script>setLoadingBarProgress(100);</script>
</body>
</html>