i18n
xaoxuu 6 years ago
parent f4c09eab11
commit a052f5c358
  1. 3
      _config.yml
  2. 3
      languages/en.yml
  3. 1
      languages/zh-CN.yml
  4. 1
      languages/zh-HK.yml
  5. 1
      languages/zh-TW.yml
  6. 12
      layout/_partial/article.ejs
  7. 10
      layout/_partial/meta.ejs
  8. 2
      layout/_widget/author.ejs

@ -52,9 +52,6 @@ music:
links: true # layout: links 的页面是否显示
post: true # layout: post 的页面是否显示
top_post:
icon: fas fa-award
text: 置顶
# 推荐文章
recommended_posts:

@ -1,8 +1,9 @@
sidebar:
category: Categories
tagcloud: Tag Cloud
tagcloud: Hot Tags
toc: Table of Contents
post:
top: Top
read_more: Read More
sticky: Sticky
comments: Comments

@ -3,6 +3,7 @@ sidebar:
tagcloud: 热门标签
toc: 文章目录
post:
top: 置顶
read_more: 阅读全文
sticky: 置顶
comments: 评论

@ -3,6 +3,7 @@ sidebar:
tagcloud: 熱門標籤
toc: 文章目錄
post:
top: 置頂
read_more: 閱讀全文
sticky: 置頂
comments: 評論

@ -3,6 +3,7 @@ sidebar:
tagcloud: 熱門標籤
toc: 文章目錄
post:
top: 置頂
read_more: 閱讀全文
sticky: 置頂
comments: 評論

@ -6,10 +6,12 @@
</div>
<% if(post.layout == 'post'){ %>
<section class='meta' id="footer-meta">
<time class="metatag time" itemprop="dateUpdated" datetime="<%- moment(post.updated).format() %>" content="<%- date(post.updated, config.date_format) %>"><i class="fas fa-pencil-alt fa-fw" aria-hidden="true"></i>
&nbsp;<%- date(post.updated, config.date_format) %>
</time>
<% if (post.tags && post.tags.length) { %>
<% if(!page.meta || page.meta.updated != false){ %>
<time class="metatag time" itemprop="dateUpdated" datetime="<%- moment(post.updated).format() %>" content="<%- date(post.updated, config.date_format) %>"><i class="fas fa-pencil-alt fa-fw" aria-hidden="true"></i>
&nbsp;<%- date(post.updated, config.date_format) %>
</time>
<% } %>
<% if (post.tags && post.tags.length && (!page.meta || page.meta.tags != false)) { %>
<%
var items = [];
post.tags.each(function(item){
@ -18,7 +20,7 @@
%>
<%- items.join(' ') %>
<% } %>
<% if (theme.services && theme.services.share == true && config.mob && config.mob.app_key && config.mob.list && page.share != false) { %>
<% if (theme.services && theme.services.share == true && config.mob && config.mob.app_key && config.mob.list && (!page.meta || page.meta.share != false)) { %>
<%- partial('../_third-party/share') %>
<% } %>
</section>

@ -29,17 +29,17 @@
<% } %>
<% } %>
<% if(post.date){ %>
<% if(post.date && (!page.meta || page.meta.date != false)){ %>
<time class="metatag time">
<i class="fas fa-calendar-alt fa-fw" aria-hidden="true"></i>&nbsp;<%= date(post.date, config.date_format) %>
</time>
<% } %>
<% if(post.categories){ %>
<% if(post.categories && (!page.meta || page.meta.categories != false)){ %>
<%- partial('categories',{post:post}) %>
<% } %>
<% if(!isPostList && theme.services){ %>
<% if(!isPostList && theme.services && (!page.meta || page.meta.counter != false)){ %>
<% if (theme.services.leancloud_visitors == true && config.leancloud_visitors && config.leancloud_visitors.app_id && config.leancloud_visitors.app_key) { %>
<div class="metatag browse leancloud"><i class="fas fa-eye fa-fw" aria-hidden="true"></i>
<span id="<%= url_for(page.path) %>" class="leancloud_visitors" data-flag-title="<%= page.title %>">
@ -53,9 +53,9 @@
<% } %>
<% } %>
<% if(theme.top_post && isPostList && post.top == true){ %>
<% if(isPostList && post.top == true){ %>
<div class="metatag top">
<i class="<%- theme.top_post.icon %> fa-fw" aria-hidden="true"></i>&nbsp;<%- theme.top_post.text %>
<i class="fas fa-angle-double-up fa-fw" aria-hidden="true"></i>&nbsp;<%- __('post.top') %>
</div>
<% } %>

@ -14,7 +14,7 @@
<%- markdown(item.body) %>
<% } %>
<% if (item.jinrishici){ %>
<p><span id="jinrishici-sentence"><%- config.title %></span></p>
<p><span id="jinrishici-sentence"><%- item.jinrishici != true ? item.jinrishici : config.title %></span></p>
<script src="https://sdk.jinrishici.com/v2/browser/jinrishici.js" charset="utf-8"></script>
<% } %>
</div>

Loading…
Cancel
Save