Skip to content

Commit

Permalink
Add Read more message and language catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
nogajun committed Aug 26, 2017
1 parent 57973a2 commit 34ffbe5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions languages/default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
newer: "Newer Text"
older: "Older Text"
4 changes: 2 additions & 2 deletions layout/_partial/read-more.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<% if (page.prev){ %>
<div class="read-more-item">
<span class="read-more-item-dim">最近的文章</span>
<span class="read-more-item-dim"><%= __('newer') %></span>
<h2 class="post-list__post-title post-title"><a href="<%- config.root %><%- page.prev.path %>" title="<%= page.prev.title %>"><%= page.prev.title %></a></h2>
<p class="excerpt">
<% if (page.prev.excerpt){ %>
Expand All @@ -19,7 +19,7 @@
<% if (page.next){ %>
<div class="read-more-item">
<span class="read-more-item-dim">更早的文章</span>
<span class="read-more-item-dim"><%= __('older') %></span>
<h2 class="post-list__post-title post-title"><a href="<%- config.root %><%- page.next.path %>" title="<%= page.next.title %>"><%= page.next.title %></a></h2>
<p class="excerpt">
<% if (page.next.excerpt){ %>
Expand Down

0 comments on commit 34ffbe5

Please sign in to comment.