Skip to content

Commit

Permalink
Change "Read more" to excerpt_link
Browse files Browse the repository at this point in the history
  • Loading branch information
nogajun committed Aug 26, 2017
1 parent ee4ddec commit 57973a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ baidu_tongji: 9cdad07c755fa23f6aced510c6760e87
favicon: /images/avatar-small.png

#mathjax
mathjax: true
mathjax: true

excerpt_link: 继续阅读
4 changes: 2 additions & 2 deletions layout/_partial/read-more.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<%= strip_html(page.prev.content).substring(0, 150)%>
<% } %>&hellip;
</p>
<div class="post-list__meta"><%- partial('_partial/date',{post: page.prev}) %> &#8226; <span class="post-list__meta--tags tags">&nbsp;<%- partial('_partial/tags',{post: page.prev}) %></span><a class="btn-border-small" href="<%- config.root %><%- page.prev.path %>">继续阅读</a></div>
<div class="post-list__meta"><%- partial('_partial/date',{post: page.prev}) %> &#8226; <span class="post-list__meta--tags tags">&nbsp;<%- partial('_partial/tags',{post: page.prev}) %></span><a class="btn-border-small" href="<%- config.root %><%- page.prev.path %>"><%= theme.excerpt_link %></a></div>
</div>
<% } %>
Expand All @@ -28,7 +28,7 @@
<%= strip_html(page.next.content).substring(0, 150)%>
<% } %>&hellip;
</p>
<div class="post-list__meta"><%- partial('_partial/date',{post: page.next}) %> &#8226; <span class="post-list__meta--tags tags">&nbsp;<%- partial('_partial/tags',{post: page.next}) %></span><a class="btn-border-small" href="<%- config.root %><%- page.next.path %>">继续阅读</a></div>
<div class="post-list__meta"><%- partial('_partial/date',{post: page.next}) %> &#8226; <span class="post-list__meta--tags tags">&nbsp;<%- partial('_partial/tags',{post: page.next}) %></span><a class="btn-border-small" href="<%- config.root %><%- page.next.path %>"><%= theme.excerpt_link %></a></div>
</div>
<% } %>
Expand Down
2 changes: 1 addition & 1 deletion layout/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<%= strip_html(post.content).substring(0, 200)%>
<% } %>&hellip;
</p>
<div class="post-list__meta"><%- partial('_partial/date',{post: post}) %> &#8226; <span class="post-list__meta--tags tags">&nbsp;<%- partial('_partial/tags',{post: post}) %></span><a class="btn-border-small" href="<%- config.root %><%- link%>">继续阅读</a></div>
<div class="post-list__meta"><%- partial('_partial/date',{post: post}) %> &#8226; <span class="post-list__meta--tags tags">&nbsp;<%- partial('_partial/tags',{post: post}) %></span><a class="btn-border-small" href="<%- config.root %><%- link%>"><%= theme.excerpt_link %></a></div>
<hr class="post-list__divider" />
</li>
<% }) %>
Expand Down

0 comments on commit 57973a2

Please sign in to comment.