提交 f5779052 编写于 作者: 折影轻梦

#10

上级 7eb22eff
<div class="footer"> <div class="footer">
<div class="container"> <div class="container">
&copy; <%= date(new Date(), 'YYYY') %> <%= config.author || config.title %> &copy; <%= date(new Date(), 'YYYY') %> <%= config.title %>
Powered by <a rel="noreferrer" href="http://hexo.io/" target="_blank">Hexo</a> Using <a rel="noreferrer" href="http://hexo.io/" target="_blank">Hexo</a>
&amp; <a rel="noreferrer" href="https://github.com/Yet-The-Books/hexo-theme-yet-the-books" target="_blank">Yet The Books</a> &amp; <a rel="noreferrer" href="https://github.com/Yet-The-Books/hexo-theme-yet-the-books" target="_blank">Yet The Books</a>
</div> </div>
</div> </div>
\ No newline at end of file
<div class="header <% if(is_home()){ %>home<% } %> "> <div class="header <% if(is_home()){ %>home<% } %> ">
<div class="container"> <div class="container">
<a class="logo" href="<%- url_for() %>" title="<%= config.author || config.title %>"><%= config.author || config.title %></a> <a class="logo" href="<%- url_for() %>" title="<%= config.title%>"><%= config.title%></a>
<ul class="nav"> <ul class="nav">
<% for (name in theme.menu) { %> <% for (name in theme.menu) { %>
<li class="nav-item"><a href="<%- url_for(theme.menu[name]) %>"><%= name %></a></li> <li class="nav-item"><a href="<%- url_for(theme.menu[name]) %>"><%= name %></a></li>
......
<div class="content"> <div class="content">
<div class="banner"> <div class="banner">
<div class="container"><h1><%= page.title %></h1></div> <div class="container">
<h1><%= page.title %></h1>
<div class="info"><span class="date"><%- date(page.date, "YYYY年M月D日") %></span>•<%= config.author %>
<% if (page.categories && page.categories.length){ %>
《<%- list_categories(page.categories, {
show_count: false,
class: 'nexmoefont icon-appstore-fill ',
style: 'none',
separator: ''
}) %>》
<% } %>
</div>
</div>
</div> </div>
<div class="container"> <div class="container">
<article class="post"> <article class="post">
<%- page.content %> <%- page.content %>
<p class="date"><%- date(page.date, "YYYY年M月D日") %></p>
<div class="info">
<div class="author">
<%= config.author %>
<% if (page.categories && page.categories.length){ %>
《<%- list_categories(page.categories, {
show_count: false,
class: 'nexmoefont icon-appstore-fill ',
style: 'none',
separator: ''
}) %>》
<% } %>
</div>
<a
class="copyright"
href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh"
target="_blank"
>&copy; CC BY-NC-SA 4.0</a
>
</div>
</article> </article>
</div> </div>
<div class="other"> <div class="other">
......
...@@ -84,10 +84,11 @@ a:hover { ...@@ -84,10 +84,11 @@ a:hover {
background-color: #f7f3ed; background-color: #f7f3ed;
display: block; display: block;
position: relative; position: relative;
padding: 5rem 0;
} }
.content.home .banner { .content.home .banner {
margin-bottom: calc(1.5rem + 2em); margin-bottom: calc(1.5rem + 4rem);
} }
.content .banner h1 { .content .banner h1 {
...@@ -95,16 +96,15 @@ a:hover { ...@@ -95,16 +96,15 @@ a:hover {
color: #aa874b; color: #aa874b;
display: block; display: block;
margin: 0 auto; margin: 0 auto;
padding: 2em 0;
} }
.content.home .banner h1 { .content.home .banner {
padding: .8em 0; padding: 3rem 0;
} }
.content .banner .search { .content .banner .search {
position: relative; position: relative;
bottom: -1.5rem; bottom: -4.5rem;
width: 100%; width: 100%;
} }
...@@ -270,8 +270,8 @@ a:hover { ...@@ -270,8 +270,8 @@ a:hover {
.content .info { .content .info {
width: 100%; width: 100%;
display: flex; text-align: center;
justify-content: space-between; padding-top: 1rem;
} }
.content .post-nav { .content .post-nav {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册