Add: nav 导航组件当前页的提示,优化其他页面样式

This commit is contained in:
XPoet 2020-03-20 15:30:39 +08:00
parent e67890a683
commit 44d28e6ab3
4 changed files with 5 additions and 7 deletions

View File

@ -1,7 +1,7 @@
<div class="article-meta-info"> <div class="article-meta-info">
<!-- date --> <!-- date -->
<span class="article-date article-meta-item"> <span class="article-date article-meta-item">
<i class="fa fa-calendar-o"></i> <%= date(articleData.date, 'YYYY-MM-DD HH:MM:SS') %> <i class="fa fa-calendar-o"></i> <%= date(articleData.date, 'YYYY-MM-DD HH:mm:ss') %>
</span> </span>
<!-- categories --> <!-- categories -->

View File

@ -2,7 +2,7 @@
<ul class="menu-list"> <ul class="menu-list">
<% for (let i in theme.menu) { %> <% for (let i in theme.menu) { %>
<li class="menu-item"> <li class="menu-item">
<a href="<%- url_for(theme.menu[i]) %>"><%= __(i.toLowerCase()) %></a> <a class="<%- is_current(theme.menu[i]) ? 'current':'' %>" href="<%- url_for(theme.menu[i]) %>"><%= __(i.toLowerCase()) %></a>
</li> </li>
<% } %> <% } %>
</ul> </ul>

View File

@ -34,7 +34,6 @@
color: #464646; color: #464646;
font-size: 22px; font-size: 22px;
margin: 0; margin: 0;
} }
a { a {
@ -49,10 +48,9 @@
} }
} }
.article-post-content { .article-post-content {
padding 15px 0 padding 15px 0
line-height 26px line-height 28px
} }
} }

View File

@ -18,7 +18,7 @@
padding-right: 20px padding-right: 20px
a { a {
color: #5A5A5A; color: #6a6a6a;
&:hover { &:hover {
color: #4786D6; color: #4786D6;
@ -27,7 +27,7 @@
&.current { &.current {
color: #5A5A5A; color: #5A5A5A;
padding-bottom: 20px; padding-bottom: 20px;
border-bottom: 2px solid #5A5A5A; border-bottom: 1px solid #4a4a4a;
} }
} }