xaoxuu 5 years ago
parent b159adaf46
commit 70045a5266
  1. 2
      layout/_meta/author.ejs
  2. 2
      layout/_meta/categories.ejs
  3. 2
      layout/_meta/tags.ejs
  4. 2
      layout/_partial/post.ejs

@ -1,6 +1,6 @@
<% if(post.author || config.author){ %> <% if(post.author || config.author){ %>
<div class='new-meta-item author'> <div class='new-meta-item author'>
<a href="<%- url_for(config.url) %>"> <a href="<%- url_for(config.url) %>" rel="nofollow">
<i class="fas fa-user" aria-hidden="true"></i> <i class="fas fa-user" aria-hidden="true"></i>
<%- post.author || config.author %> <%- post.author || config.author %>
</a> </a>

@ -8,7 +8,7 @@
}); });
%> %>
<div class='new-meta-item category'> <div class='new-meta-item category'>
<a href='<%- url_for(path) %>'> <a href='<%- url_for(path) %>' rel="nofollow">
<i class="fas fa-folder-open" aria-hidden="true"></i> <i class="fas fa-folder-open" aria-hidden="true"></i>
<%- cats.join('&nbsp;/&nbsp;') %> <%- cats.join('&nbsp;/&nbsp;') %>
</a> </a>

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

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

Loading…
Cancel
Save