标签修改
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<% if (item.categories && item.categories.length > 0){ %>
|
||||
<%
|
||||
var cats = [];
|
||||
item.categories.forEach(function(cat){
|
||||
cats.push('<a class="breadcrumb" href="' + config.root + cat.path + '">' + cat.name + '</a>');
|
||||
});
|
||||
%>
|
||||
|
||||
<%- cats.join('') %>
|
||||
<% } %>
|
||||
@@ -0,0 +1,18 @@
|
||||
<div class="gallery carousel carousel-slider">
|
||||
<% if (item.photos.length){ %>
|
||||
<% item.photos.forEach(function(photo){ %>
|
||||
<span class="carousel-item"><img class="carousel-image" src="<%- photo %>"></span>
|
||||
<% }); %>
|
||||
<% } else { %>
|
||||
<img class="carousel-item" src="<%- item.photos %>">
|
||||
<% } %>
|
||||
<div class="control">
|
||||
<div class="carousel-control prev">
|
||||
<i class="fa fa-left"></i>
|
||||
|
||||
</div>
|
||||
<div class="carousel-control next">
|
||||
<i class="fa fa-right"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,15 @@
|
||||
<% if (item.prev) { %>
|
||||
<p class="<%= theme.color.link %>-link-context">
|
||||
<a href="<%= url_for(item.prev.path) %>" rel="next" title="<%= item.prev.title %>">
|
||||
<%= __('prev', item.prev.title) %>
|
||||
</a>
|
||||
</p>
|
||||
<% } %>
|
||||
|
||||
<% if (item.next) { %>
|
||||
<p class="<%= theme.color.link %>-link-context">
|
||||
<a href="<%= url_for(item.next.path) %>" rel="next" title="<%= item.next.title %>">
|
||||
<%= __('next', item.next.title) %>
|
||||
</a>
|
||||
</p>
|
||||
<% } %>
|
||||
@@ -0,0 +1,6 @@
|
||||
<% if (theme.page_stat) { %>
|
||||
<span id="busuanzi_container_page_pv" class="read-times-container">
|
||||
<i class="fa fa-eye"></i>
|
||||
<span id="busuanzi_value_page_pv"></span>
|
||||
</span>
|
||||
<% } %>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div class="toc <%= theme.color.link %>-link-context hide-on-med-and-down">
|
||||
<%- toc(item.content, {class: 'section table-of-contents', list_number: false}) %>
|
||||
</div>
|
||||
@@ -0,0 +1,7 @@
|
||||
<% if (item.tags && item.tags.length > 0){ %>
|
||||
<div class="tags-row">
|
||||
<% item.tags.forEach(function(tag) { %>
|
||||
<a href="<%= config.root + tag.path %>" class="chip <%= theme.color.tag %>"><%= tag.name %></a>
|
||||
<% }); %>
|
||||
</div>
|
||||
<% } %>
|
||||
@@ -0,0 +1 @@
|
||||
<time class="<%= theme.color.link %>-link-context" datetime="<%= item.date.toDate().toISOString() %>"><a href="<%- url_for(item.path) %>"><%= item.date.format(config.date_format) %></a></time>
|
||||
@@ -0,0 +1,13 @@
|
||||
<% if (item.link){ %>
|
||||
<% if (item.title){ %>
|
||||
<h1><a href="<%- item.link %>" target="_blank"><%= item.title || __('no_title') %></a></h1>
|
||||
<% } else { %>
|
||||
<h1><a href="<%- item.link %>" target="_blank"><%= item.link || __('no_title') %></a></h1>
|
||||
<% } %>
|
||||
<% } else { %>
|
||||
<% if (index){ %>
|
||||
<h1 class="<%= theme.color.article_title_link %>-link-context"><a href="<%- url_for(item.path) %>"><%= item.title || __('no_title') %></a></h1>
|
||||
<% } else { %>
|
||||
<h1><%= item.title || __('no_title') %></h1>
|
||||
<% } %>
|
||||
<% } %>
|
||||
Reference in New Issue
Block a user