i18n
xaoxuu 5 years ago
parent 9dfcd4adef
commit 1e0bc17523
  1. 2
      _config.yml
  2. 2
      layout/_meta/tags.ejs
  3. 5
      layout/_partial/article.ejs
  4. 2
      layout/_partial/meta.ejs
  5. 2
      layout/_partial/post.ejs
  6. 2
      layout/_widget/tagcloud.ejs
  7. 7
      layout/links.ejs
  8. 2
      layout/tag.ejs

@ -171,7 +171,7 @@ sidebar:
url: blog/categories/
rel: nofollow
- widget: tagcloud
icon: fas fa-fire
icon: fas fa-tags
more:
icon: fas fa-expand-arrows-alt
url: blog/tags/

@ -2,7 +2,7 @@
<%
var items = [];
post.tags.each(function(item){
items.push('<div class="new-meta-item meta-tags"><a class="tag" href="'+url_for(item.path)+'" rel="nofollow"><i class="fas fa-hashtag" aria-hidden="true"></i>&nbsp;<p>' + item.name + '</p></a></div>');
items.push('<div class="new-meta-item meta-tags"><a class="tag" href="'+url_for(item.path)+'" rel="nofollow"><i class="fas fa-tag" aria-hidden="true"></i><p>' + item.name + '</p></a></div>');
});
%>
<%- items.join(' ') %>

@ -8,6 +8,7 @@
<%- post.content %>
</div>
<% if(post.layout == 'post'){ %>
<br>
<%- partial('meta', {post: post, position: 'footer'}) %>
<% } %>
<% if(post.prev || post.next){ %>
@ -29,7 +30,7 @@
<%
var items = [];
post.prev.tags.each(function(item){
items.push('<a class="tag" href="'+url_for(item.path)+'"><i class="fas fa-hashtag fa-fw" aria-hidden="true"></i>' + item.name + '</a>');
items.push('<a class="tag" href="'+url_for(item.path)+'"><i class="fas fa-tag fa-fw" aria-hidden="true"></i> ' + item.name + '</a>');
});
%>
<h6 class="tags">
@ -56,7 +57,7 @@
<%
var items = [];
post.next.tags.each(function(item){
items.push('<a class="tag" href="'+url_for(item.path)+'"><i class="fas fa-hashtag fa-fw" aria-hidden="true"></i>' + item.name + '</a>');
items.push('<a class="tag" href="'+url_for(item.path)+'"><i class="fas fa-tag fa-fw" aria-hidden="true"></i> ' + item.name + '</a>');
});
%>
<h6 class="tags">

@ -50,7 +50,7 @@ if (post.meta && (post.meta.footer !== undefined && post.meta.footer !== null))
</section>
<% } else if (position == 'footer') { %>
<section class='meta' id="footer-meta">
<hr>
<div class='new-meta-box'>
<% (bottomMetas).forEach(function(meta){ %>
<% if(meta != 'title'){ %>

@ -15,7 +15,7 @@
<% if (post.tags && post.tags.length) { %>
<div class="full-width auto-padding tags">
<% post.tags.each(function(item){ %>
<a href="<%- url_for(item.path) %>" rel="nofollow"><i class="fas fa-hashtag fa-fw"></i><%=item.name %></a>
<a href="<%- url_for(item.path) %>" rel="nofollow"><i class="fas fa-tag fa-fw"></i> <%=item.name %></a>
<%})%>
</div>
<% } %>

@ -1,6 +1,6 @@
<% if (site.tags.length){ %>
<section class='widget <%- item.widget %>'>
<%- partial('header', {item: item, defIcon: 'fas fa-fire', defTitle: __('sidebar.tagcloud')}) %>
<%- partial('header', {item: item, defIcon: 'fas fa-tags', defTitle: __('sidebar.tagcloud')}) %>
<div class='content <%= theme.style %>'>
<%- tagcloud(site.tags, {
min_font: 14,

@ -7,12 +7,13 @@
<% if(group.items) { %>
<div class='friends-group'>
<% if(group.group) { %>
<h2 class='friend-header'>
<br>
<h3 class='friend-header'>
<% if (group.icon) { %>
<i class="<%= group.icon %> fa-fw" aria-hidden="true"></i>
<%} %>
<%= group.group %>
</h2>
</h3>
<%} %>
<div class='friend-content'>
<% (group.items||[]).forEach(function(item){ %>
@ -38,7 +39,7 @@
<%} %>
<% }) %>
<% } %>
<br><hr>
<br><br>
<%- page.content %>
</section>
</article>

@ -15,7 +15,7 @@
<% site.tags.sort('path').each(function(tags){ %>
<% if (tags.posts.length){ %>
<a class="<%= tags.parent ? ' child' : ''%>" href="<%= url_for(tags.path) %>">
<time><i class='fas fa-hashtag fa-fw' aria-hidden="true"></i>&nbsp;&nbsp;<%= tags.name %></time>
<time><i class='fas fa-tag fa-fw' aria-hidden="true"></i>&nbsp;&nbsp;<%= tags.name %></time>
<span class="title">
(<%- tags.posts.length %>)
</span>

Loading…
Cancel
Save