File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed
Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 11<%
2+ var lang = config .language || ' zh-CN' ;
23 var title = page .title ;
34 // tags, categories, about pages title
45 if (title === ' tags' ) {
5- title = ' 标签 | ' + config .title ;
6+ title = lang === ' en ' ? ' Tags | ' + config . title : ' 标签 | ' + config .title ;
67 } else if (title === ' categories' ) {
7- title = ' 分类归档 | ' + config .title ;
8+ title = lang === ' en ' ? ' Categories | ' + config . title : ' 分类归档 | ' + config .title ;
89 } else if (title === ' about' ) {
9- title = ' 关于 | ' + config .title ;
10+ title = lang === ' en ' ? ' About | ' + config . title : ' 关于 | ' + config .title ;
1011 } else if (! title) {
1112 title = config .title ;
1213 }
Original file line number Diff line number Diff line change 3838
3939<% if (page .total > 1 ) { % >
4040 < div class = " pagination-container" >
41+ < % var lang = config .language || ' zh-CN' ; % >
4142 < % if (page .prev ) { % >
42- < a href= " <%- url_for(page.prev_link) %>" class = " prev" >< i class = " icon icon-arrow-ios-back-outline" >< / i> 上一页< / a>
43+ < a href= " <%- url_for(page.prev_link) %>" class = " prev" >< i class = " icon icon-arrow-ios-back-outline" >< / i> < %= lang === ' en ' ? ' Prev ' : ' 上一页' % > </ a>
4344 < % } % >
4445 < % if (page .next ) { % >
45- < a href= " <%- url_for(page.next_link) %>" class = " next" > 下一页 < i class = " icon icon-arrow-ios-forward-outline" >< / i>< / a>
46+ < a href= " <%- url_for(page.next_link) %>" class = " next" >< %= lang === ' en ' ? ' Next ' : ' 下一页' % > < i class = " icon icon-arrow-ios-forward-outline" >< / i>< / a>
4647 < % } % >
4748 < / div>
4849< % } %>
Original file line number Diff line number Diff line change 3939 < div class = " next-post" >
4040 < a class = " purple-link" href= " <%- url_for(page.next.path) %>" >
4141 < h3 class = " post-title" >
42- 下一篇:< %= page .next .title % >
42+ < % var lang = config .language || ' zh-CN' ; % >
43+ < %= lang === ' en' ? ' Next post: ' : ' 下一篇:' % >< %= page .next .title % >
4344 < / h3>
4445 < / a>
4546 < / div>
Original file line number Diff line number Diff line change 33<div class =" content-container" >
44
55 <div class =" tags-container" >
6+ <% var lang = config .language || ' zh-CN' ; %>
67 <% if (site .tags .length <= 0 ) { % >
7- < a class = " tag" href= " " > 暂无标签< / a>
8+ < a class = " tag" href= " " >< %= lang === ' en ' ? ' No tags yet ' : ' 暂无标签' % > </ a>
89 < % } %>
910 <% site .tags .forEach ((tag ) => { % >
1011 < a class = " tag" href= " <%= url_for(tag.path) %>" >< %= tag .name % >< / a>
You can’t perform that action at this time.
0 commit comments