chore: adjust article tags position

This commit is contained in:
ppoffice 2016-02-05 22:05:37 +08:00
parent d30c6d5fbe
commit f095d234e3
8 changed files with 42 additions and 48 deletions

View File

@ -14,7 +14,7 @@
<section class="archives-wrap"> <section class="archives-wrap">
<div class="archives"> <div class="archives">
<% } %> <% } %>
<%- partial('archive-post', {post: post, archive: true}) %> <%- partial('summary', {post: post, archive: true}) %>
<% }); <% });
if (page.posts.length) { %> if (page.posts.length) { %>
</div></section> </div></section>
@ -35,7 +35,7 @@
</div> </div>
<div class="archives"> <div class="archives">
<% page.posts.each(function (post, i) { %> <% page.posts.each(function (post, i) { %>
<%- partial('archive-post', {post: post, archive: false}) %> <%- partial('summary', {post: post, archive: false}) %>
<% }); %> <% }); %>
</div></section> </div></section>
<% if (page.total > 1) { %> <% if (page.total > 1) { %>
@ -54,7 +54,7 @@
</div> </div>
<div class="archives"> <div class="archives">
<% page.posts.each(function (post, i) { %> <% page.posts.each(function (post, i) { %>
<%- partial('archive-post', {post: post, archive: false}) %> <%- partial('summary', {post: post, archive: false}) %>
<% }); %> <% }); %>
</div></section> </div></section>
<% if (page.total > 1) { %> <% if (page.total > 1) { %>

View File

@ -16,7 +16,7 @@
<% } %> <% } %>
<div class="article-entry" itemprop="articleBody"> <div class="article-entry" itemprop="articleBody">
<% if (index) { %> <% if (index) { %>
<%- excerpt(post) %> <p><%- excerpt(post) %></p>
<p class="article-more-link"> <p class="article-more-link">
<a href="<%- url_for(post.path) %>#more"><%= __('article.more') %></a> <a href="<%- url_for(post.path) %>#more"><%= __('article.more') %></a>
</p> </p>

View File

@ -1,4 +1,4 @@
<% if (post.date && !post.hidedate) { %> <% if (post.date) { %>
<div class="<%= class_name %>"> <div class="<%= class_name %>">
<i class="fa fa-calendar"></i> <i class="fa fa-calendar"></i>
<a href="<%- url_for(post.path) %>"> <a href="<%- url_for(post.path) %>">

View File

@ -1,6 +1,6 @@
<% if (post.tags && post.tags.length) { %> <% if (post.tags && post.tags.length) { %>
<%- list_tags(post.tags, { <div class="article-tag">
show_count: false, <i class="fa fa-tag"></i>
class: 'article-tag' <%- list_tags(post.tags, { show_count: false, style: 'link' }) %>
}) %> </div>
<% } %> <% } %>

View File

@ -8,10 +8,10 @@ $link-dark
color: color-link color: color-link
$block-caption $block-caption
line-height: 1em
color: color-grey
text-decoration: none text-decoration: none
text-transform: uppercase text-transform: uppercase
color: color-grey
line-height: 1em
$block $block
background: #fff background: #fff

View File

@ -9,32 +9,6 @@
width:100% width:100%
height:auto height:auto
.article-meta
clearfix()
& > div
margin-bottom: 5px
.article-date, .article-category
margin-right: 10px
color: color-default + #444
a
color: color-default + #444
&:hover
color: color-link
.article-date
@extend $block-caption
float: left
.article-category
float: left
line-height: 1em
color: color-default
.fa-angle-right
margin: 0 5px
.article-category-link
@extend $block-caption
.article-header .article-header
padding: article-padding article-padding 0 padding: article-padding article-padding 0
.article-title .article-title
@ -42,15 +16,43 @@
margin-bottom: 14px margin-bottom: 14px
.article-title .article-title
text-decoration: none
font-size: 2em font-size: 2em
color: color-default color: color-default
line-height: line-height-title text-decoration: none
transition: color 0.2s transition: color 0.2s
line-height: line-height-title
a&:visited a&:visited
color: color-default color: color-default
a&:hover a&:hover
color: color-link color: color-link
@media mq-mini
font-size: 1.6em
@media mq-mobile
font-size: 1.6em
.article-meta
@extend $block-caption
clearfix()
line-height: 1.6em
& > div
float: left
margin-right: 10px
color: color-default + #444
.fa
margin-right: 3px
a
color: color-default + #444
&:hover
color: color-link
.article-category
.fa-angle-right
margin: 0 5px
.article-tag
.tag-link
&:before
content: "#"
.article-entry .article-entry
@extend $base-style @extend $base-style
@ -176,14 +178,6 @@
&:hover &:hover
color: color-default color: color-default
.article-tag-list-item
float: left
margin-right: 10px
.article-tag-list-link
&:before
content: "#"
.article-comment-link .article-comment-link
float: right float: right
&:before &:before

View File

@ -20,7 +20,7 @@ font-serif = Georgia, "Times New Roman", "Microsoft Yahei", serif
font-mono = "Source Code Pro", Consolas, Monaco, Menlo, Consolas, monospace font-mono = "Source Code Pro", Consolas, Monaco, Menlo, Consolas, monospace
font-size = 14px font-size = 14px
line-height = 1.6em line-height = 1.6em
line-height-title = 1.1em line-height-title = 1.3em
// Header // Header
header-height = 64px header-height = 64px