You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
2.7 KiB
Plaintext
74 lines
2.7 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<%- include('./_blocks/head', { isHome: true,siteTitle: themeConfig.siteName }) %>
|
|
<meta name="description" content="<%= themeConfig.siteDescription %>">
|
|
<% if (site.customConfig.renderKaTeX) { %>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.css">
|
|
<% } %>
|
|
</head>
|
|
<body style="">
|
|
<script type="text/javascript">
|
|
if (/mobile/i.test(navigator.userAgent) || /android/i.test(navigator.userAgent)) {
|
|
document.body.classList.add('mobile')
|
|
}
|
|
</script>
|
|
<nav class="navbar navbar-default navbar-fixed-top" style="opacity:.9;" role="navigation">
|
|
<div class="container-fluid">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse"
|
|
data-target="#bs-example-navbar-collapse-1">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="/"><%= themeConfig.siteName %></a>
|
|
</div>
|
|
<div class="navbar-collapse collapse" id="navbar-bs" style="height:1px;">
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<% var i = 0; %>
|
|
<% menus.forEach(function(menu) { %>
|
|
<% i++; %>
|
|
<% if (i === 1){ %>
|
|
<li class="active">
|
|
<% } else { %>
|
|
<li>
|
|
<% } %>
|
|
<% if (menu.openType === 'External') { %>
|
|
<a href="<%= menu.link %>" target="_blank">
|
|
<%= menu.name %>
|
|
</a>
|
|
<% } else { %>
|
|
<a href="<%= menu.link %>" target="_self">
|
|
<%= menu.name %>
|
|
</a>
|
|
<% } %>
|
|
<% }); %>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<div>
|
|
<div class="outer">
|
|
<ul class="list-group">
|
|
<% posts.forEach(function(post) { %>
|
|
<li class="list-group-item title">
|
|
<div class="date"><%= post.dateFormat %></div>
|
|
<a href="<%= post.link %>" target="_self"><%= post.title %></a>
|
|
<% if (site.customConfig.wordcount) { %>
|
|
<div class="word-count"><%= post.stats.words %>字</div>
|
|
<% } %>
|
|
</li>
|
|
<% }); %>
|
|
</ul>
|
|
<h5> </h5>
|
|
<%- include('./_blocks/pagination') %>
|
|
</div>
|
|
</div>
|
|
|
|
<%- include('./_blocks/scripts') %>
|
|
</body>
|
|
</html>
|