i18n
xaoxuu 6 years ago
parent 4f6f70a636
commit 532b4c465a
  1. 2
      _config.yml
  2. 8
      layout/_partial/meta.ejs
  3. 2
      layout/_widget/category.ejs
  4. 2
      layout/_widget/list.ejs
  5. 1
      source/less/_widget.less

@ -24,7 +24,7 @@ services:
scrollreveal: true
nodewaves: true
busuanzi: true
# fastclick: true
fastclick: true
# leancloud_visitors: true
recommended_posts: true # 需要安装"hexo-recommended-posts": "^1.0.3",
comments: true

@ -29,17 +29,17 @@
<% } %>
<% } %>
<% if(post.date && (!page.meta || page.meta.date != false)){ %>
<% if(post.date && (!post.meta || post.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 && (!page.meta || page.meta.categories != false)){ %>
<% if(post.categories && (!post.meta || post.meta.categories != false)){ %>
<%- partial('categories',{post:post}) %>
<% } %>
<% if(!isPostList && theme.services && (!page.meta || page.meta.counter != false)){ %>
<% if(!isPostList && theme.services && (!post.meta || post.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,7 +53,7 @@
<% } %>
<% } %>
<% if(isPostList && post.top == true){ %>
<% if(isPostList && post.top == true && (!post.meta || post.meta.top != false)){ %>
<div class="metatag top">
<i class="fas fa-angle-double-up fa-fw" aria-hidden="true"></i>&nbsp;<%- __('post.top') %>
</div>

@ -4,7 +4,7 @@
<div class='content <%= theme.style %>'>
<ul class="entry">
<% site.categories.sort('name').each(function(category){ %>
<li><a class="flat-box" title="<%- url_for(category.path) %>" href="<%- url_for(category.path) %>"><div class='name'><%- category.name %></div><div class='badge'><%- __('symbol.brackets_l') %><%- category.posts.length %><%- __('symbol.brackets_r') %></div></a></li>
<li><a class="flat-box" title="<%- url_for(category.path) %>" href="<%- url_for(category.path) %>"><div class='name'><%- category.name %></div><div class='badge'>(<%- category.posts.length %>)</div></a></li>
<% }) %>
</ul>
</div>

@ -15,7 +15,7 @@
&nbsp;&nbsp;<%- row.name %>
</div>
<% if(row.desc) { %>
<div class='badge'><%- __('symbol.brackets_l') %><%- row.desc %><%- __('symbol.brackets_r') %></div>
<div class='badge'>(<%- row.desc %>)</div>
<% } %>
</a></li>
<% }) %>

@ -81,6 +81,7 @@
}
.badge{
flex:none;
font-weight: normal;
font-size: @fontsize_small;
color: fade(@color_text_main, 70%);
}

Loading…
Cancel
Save