Jelajahi Sumber

Fix article catalogue I18N

zhengxiaopeng 10 tahun lalu
induk
melakukan
ffeb7b8770
3 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 1 0
      languages/en.yml
  2. 1 0
      languages/zh-CN.yml
  3. 1 1
      layout/_partial/article.ejs

+ 1 - 0
languages/en.yml

@@ -18,6 +18,7 @@ widget:
 article:
   comments: 'Comments'
   share: 'Share'
+  catalogue: 'Catalogue'
 profile:
   follow: 'FOLLOW'
   post: 'post'

+ 1 - 0
languages/zh-CN.yml

@@ -18,6 +18,7 @@ widget:
 article:
   comments: '评论'
   share: '分享到'
+  catalogue: '文章目录'
 profile:
   follow: '关注我'
   post: '文章'

+ 1 - 1
layout/_partial/article.ejs

@@ -24,7 +24,7 @@
       <% } else { %>
                 <% if (!index && post.toc){ %>
                     <div id="toc" class="toc-article">
-                    <strong class="toc-title">文章目录</strong>
+                    <strong class="toc-title"><%= __('article.catalogue') %></strong>
     <%- toc(post.content) %>
   </div>
 <% } %>