i18n
xaoxuu 4 years ago
parent ca5c1f39cd
commit 19dcfe7018
  1. 1
      _config.yml
  2. 2
      languages/zh-TW.yml
  3. 2
      layout/_meta/thumbnail.ejs
  4. 4
      layout/_meta/title.ejs
  5. 3
      layout/_partial/article.ejs
  6. 2
      layout/_partial/meta.ejs
  7. 4
      layout/_partial/post.ejs
  8. 2
      layout/_widget/toc.ejs
  9. 2
      layout/archive.ejs

@ -172,6 +172,7 @@ widget:
icon: fas fa-list
title: 本文目录
list_number: false # 是否显示章节
min_depth: 2 # H1建议用作网页或者文章的标题,章节从H2开始。
max_depth: 5 # 由于宽度有限,主题没有针对所有层级进行布局优化,建议文章最多分为:H2/H3/H4/H5四个层级
# ---------------------------------------
# 文章分类小部件配置

@ -3,7 +3,7 @@ post:
read_more: 閱讀全文
sticky: 置頂
wordcount: '字數:%s字'
  duration: '時長:%s分鐘'
duration: '時長:%s分鐘'
comments: 評論
comments_placeholder: 無法加載%s評論系統,請確保您的網絡能夠正常訪問。
copy_button: 複製

@ -1,3 +1,3 @@
<% if(post.thumbnail && post.thumbnail.length){ %>
<a title='<%- post.title %>' href='<%- url_for(post.path) %>'><img class='thumbnail' src='<%- post.thumbnail %>'></a>
<a title='<%- post.title %>' href='<%- url_for(post.link || post.path) %>'><img class='thumbnail' src='<%- post.thumbnail %>'></a>
<% } %>

@ -1,13 +1,13 @@
<% if(isPostList){ %>
<h2 class="title">
<a href="<%- url_for(post.path) %>">
<a href="<%- url_for(post.link || post.path) %>">
<%- post.title ? post.title : date(post.date, theme.date_format) %>
</a>
</h2>
<% } else { %>
<% if (post.title || page.title || config.title) { %>
<h1 class="title">
<a href="<%- url_for(post.path) %>">
<a href="<%- url_for(post.link || post.path) %>">
<%- post.title ? post.title : date(post.date, theme.date_format) %>
</a>
</h1>

@ -5,6 +5,9 @@
<%- partial('meta', {post: post, position: 'header'}) %>
<section class="article typo">
<div class="article-entry" itemprop="articleBody">
<% post.photos.forEach(function(photo){ %>
<fancybox><img src='<%- url_for(photo) %>'/></fancybox>
<% }) %>
<%- post.content %>
<% if(theme.footer_post && page.layout == 'post'){ %>
<br>

@ -40,7 +40,7 @@ if (post.meta && (post.meta.footer !== undefined && post.meta.footer !== null))
aplayer_volume: post.music.volume?post.music.volume:'0.7', aplayer_autoplay: post.music.autoplay?true:false }) %>
<% } %>
<% if(post.thumbnail && post.thumbnail.length){ %>
<a title='<%- post.title %>' href='<%- url_for(post.path) %>'><img class='thumbnail' src='<%- post.thumbnail %>'></a>
<a title='<%- post.title %>' href='<%- url_for(post.link || post.path) %>'><img class='thumbnail' src='<%- post.thumbnail %>'></a>
<% } %>
<div class="meta" id="header-meta">
<% if((topMetas).indexOf('title') > -1){ %>

@ -3,9 +3,9 @@
<section class="article typo">
<div class="article-entry" itemprop="articleBody">
<%- post.excerpt || post.description %>
<% if (post.readmore != false && post.path) { %>
<% if (post.readmore != false && (post.link || post.path)) { %>
<div class="button readmore">
<a href="<%- url_for(post.path) %>" class="flat-box">
<a href="<%- url_for(post.link || post.path) %>" class="flat-box">
<i class="fas fa-book-open fa-fw" aria-hidden="true"></i>
<%- __('post.read_more') %>
</a>

@ -2,7 +2,7 @@
<section class='widget toc-wrapper'>
<%- partial('header', {item: item}) %>
<div class='content <%= theme.style %>'>
<%- toc(page.content, {list_number: item.list_number, max_depth: item.max_depth}) %>
<%- toc(page.content, {list_number: item.list_number, min_depth: item.min_depth, max_depth: item.max_depth}) %>
</div>
</section>
<% } %>

@ -16,7 +16,7 @@
</div>
<% } %>
<div class="archive-item archive-post mark">
<a href="<%= url_for(post.path) %>">
<a href="<%= url_for(post.link || post.path) %>">
<time><%= date(post.date, 'MM-DD') %></time>
<span class="title">
<% if(post.title){ %>

Loading…
Cancel
Save