-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// ------------------------------ | ||
// READ MORE | ||
// ------------------------------ | ||
|
||
.read-more { | ||
margin-bottom: 1em; | ||
} | ||
|
||
.read-more-item { | ||
display: inline; | ||
width: 48%; | ||
margin-top: 20pt; | ||
margin-bottom: 20pt; | ||
} | ||
|
||
.read-more-item-dim { | ||
color: $hover-color; | ||
font-size: .8em; | ||
} | ||
|
||
.read-more-item.read-more-item-left { | ||
float: left; | ||
} | ||
|
||
.read-more-item.read-more-item-right { | ||
float: right; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<div class="read-more"> | ||
{{#next_post}} | ||
<div class="read-more-item read-more-item-left"> | ||
<span class="read-more-item-dim">最近的文章</span> | ||
<h2 class="post-list__post-title post-title"><a href="{{url}}" title="link to {{{title}}}">{{{title}}}</a></h2> | ||
<p class="excerpt">{{excerpt characters="100"}}…</p> | ||
<div class="post-list__meta"><time datetime="{{date format="DD MMM YYYY"}}" class="post-list__meta--date date">{{date format="DD MMM YYYY"}}</time> • <span class="post-list__meta--tags tags">{{tags prefix="于 "}}</span><a class="btn-border-small" href={{url}}>继续阅读</a></div> | ||
</div> | ||
{{/next_post}} | ||
|
||
{{#prev_post}} | ||
<div class="read-more-item read-more-item-right"> | ||
<span class="read-more-item-dim">更早的文章</span> | ||
<h2 class="post-list__post-title post-title"><a href="{{url}}" title="link to {{{title}}}">{{{title}}}</a></h2> | ||
<p class="excerpt">{{excerpt characters="100"}}…</p> | ||
<div class="post-list__meta"><time datetime="{{date format="DD MMM YYYY"}}" class="post-list__meta--date date">{{date format="DD MMM YYYY"}}</time> • <span class="post-list__meta--tags tags">{{tags prefix="于 "}}</span><a class="btn-border-small" href={{url}}>继续阅读</a></div> | ||
</div> | ||
{{/prev_post}} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,8 @@ | |
</section> | ||
|
||
</article> | ||
|
||
|
||
{{> read-more}} | ||
{{!-- {{> comments}} --}} | ||
|
||
{{/post}} | ||
{{/post}} |