Skip to content

Commit

Permalink
Translate blog button and Fix Previous button class
Browse files Browse the repository at this point in the history
  • Loading branch information
nogajun committed Aug 27, 2017
1 parent 8ca5fc3 commit c73238d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions languages/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ mygoogleplus: Google+
myfacebook: Facebook
mytwitter: Twitter
myemail: Mail
blog: Blog
visitblog: "Visit the blog"


2 changes: 1 addition & 1 deletion layout/_partial/side-panel.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div>
<nav class="cover-navigation cover-navigation--primary">
<ul class="navigation">
<li class="navigation__item"><a href="/#blog" title="访问博客" class="blog-button">博客</a></li>
<li class="navigation__item"><a href="/#blog" title="<%= __('visitblog') %>" class="blog-button"><%= __('blog') %></a></li>
<% for (var i in theme.menu){ %>
<li class="navigation__item"><a href="<%- theme.menu[i] %>"><%= i %></a></li>
<% } %>
Expand Down
6 changes: 3 additions & 3 deletions layout/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
page.prev_link = "/#blog";
}
%>
<a class="older-posts pagination__older btn btn-small btn-tertiary" href="<%- url_for(page.prev_link) %>"> <%= __('previous') %></a>
<a class="older-posts pagination__newer btn btn-small btn-tertiary" href="<%- url_for(page.prev_link) %>">&larr; <%= __('previous') %></a>
<% } %>
<span class="pagination__page-number" > <%= page.current %> / <%= page.total %> </span>
<span class="pagination__page-number" > <%= page.current %> / <%= page.total %> </span>
<% if (page.next){ %>
<a class="older-posts pagination__older btn btn-small btn-tertiary" href="<%- url_for(page.next_link) %>"><%= __('next') %> </a>
<a class="older-posts pagination__older btn btn-small btn-tertiary" href="<%- url_for(page.next_link) %>"><%= __('next') %> &rarr;</a>
<% } %>
</nav>
<% } %>
Expand Down
Binary file removed source/images/avatar.jpg
Binary file not shown.

0 comments on commit c73238d

Please sign in to comment.