parent
504cef8452
commit
7ff99a7abd
18 changed files with 241 additions and 209 deletions
@ -0,0 +1,8 @@ |
|||||||
|
<% if(post.author || config.author){ %> |
||||||
|
<div class='new-meta-item author'> |
||||||
|
<a href="<%- url_for(config.url) %>"> |
||||||
|
<i class="fas fa-user" aria-hidden="true"></i> |
||||||
|
<%- post.author || config.author %> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
<% } %> |
@ -0,0 +1,16 @@ |
|||||||
|
<% if (post.categories && post.categories.length && post.categories.forEach){ %> |
||||||
|
<% |
||||||
|
var cats = []; |
||||||
|
var path; |
||||||
|
post.categories.forEach(function(cat){ |
||||||
|
cats.push(cat.name); |
||||||
|
path = cat.path; |
||||||
|
}); |
||||||
|
%> |
||||||
|
<div class='new-meta-item category'> |
||||||
|
<a href='<%- url_for(path) %>'> |
||||||
|
<i class="fas fa-folder-open" aria-hidden="true"></i> |
||||||
|
<%- cats.join(' / ') %> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
<% } %> |
@ -0,0 +1,12 @@ |
|||||||
|
<% if(!isPostList){ %> |
||||||
|
<% if (theme.busuanzi == true) { %> |
||||||
|
<div class="new-meta-item browse busuanzi"> |
||||||
|
<a class='notlink'> |
||||||
|
<i class="fas fa-eye" aria-hidden="true"></i> |
||||||
|
<span id="busuanzi_value_page_pv"> |
||||||
|
<i class="fas fa-spinner fa-spin fa-fw" aria-hidden="true"></i> |
||||||
|
</span> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
<% } %> |
||||||
|
<% } %> |
@ -0,0 +1,6 @@ |
|||||||
|
<div class="new-meta-item date"> |
||||||
|
<a class='notlink'> |
||||||
|
<i class="fas fa-calendar-alt" aria-hidden="true"></i> |
||||||
|
<%= date(post.date, theme.date_format) %> |
||||||
|
</a> |
||||||
|
</div> |
@ -0,0 +1,6 @@ |
|||||||
|
<% if(post.music && post.music.enable != false){ %> |
||||||
|
<%- partial('../_third-party/aplayer', |
||||||
|
{aplayer_theme: '', aplayer_mini: true, aplayer_mode: 'circulation', |
||||||
|
aplayer_server: post.music.server, aplayer_type: post.music.type, aplayer_id: post.music.id, |
||||||
|
aplayer_volume: post.music.volume?post.music.volume:'0.7', aplayer_autoplay: post.music.autoplay?true:false }) %> |
||||||
|
<% } %> |
@ -0,0 +1,3 @@ |
|||||||
|
<% if (theme.share) { %> |
||||||
|
<%- partial('../_third-party/share') %> |
||||||
|
<% } %> |
@ -0,0 +1,9 @@ |
|||||||
|
<% if (!isPostList && post.tags && post.tags.length) { %> |
||||||
|
<% |
||||||
|
var items = []; |
||||||
|
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> ' + item.name + '</a></div>'); |
||||||
|
}); |
||||||
|
%> |
||||||
|
<%- items.join(' ') %> |
||||||
|
<% } %> |
@ -0,0 +1,3 @@ |
|||||||
|
<% if(post.thumbnail && post.thumbnail.length){ %> |
||||||
|
<a title='<%- post.title %>' href='<%- url_for(post.path) %>'><img class='thumbnail' src='<%- post.thumbnail %>'></a> |
||||||
|
<% } %> |
@ -0,0 +1,11 @@ |
|||||||
|
<% if(isPostList){ %> |
||||||
|
<h2 class="title"> |
||||||
|
<a href="<%- url_for(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"><%- post.title ? post.title : date(post.date, theme.date_format) %></h1> |
||||||
|
<% } %> |
||||||
|
<% } %> |
@ -0,0 +1,8 @@ |
|||||||
|
<% if(isPostList && post.top){ %> |
||||||
|
<div class="new-meta-item top-post"> |
||||||
|
<a class='notlink'> |
||||||
|
<i class="fas fa-angle-double-up" aria-hidden="true"></i> |
||||||
|
<%- post.top != true ? post.top : __('post.top') %> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
<% } %> |
@ -0,0 +1,6 @@ |
|||||||
|
<div class="new-meta-item date" itemprop="dateUpdated" datetime="<%- moment(post.updated).format() %>"> |
||||||
|
<a class='notlink'> |
||||||
|
<i class="fas fa-save" aria-hidden="true"></i> |
||||||
|
<%- __('post.updated') + ' ' + date(post.updated, theme.updated_date_format) %> |
||||||
|
</a> |
||||||
|
</div> |
@ -1,34 +1,32 @@ |
|||||||
<% if (theme.share && page.layout == 'post' && page.share != false) { %> |
<div class="new-meta-item share -mob-share-list"> |
||||||
<div class="new-meta-item share -mob-share-list"> |
<i class="fas fa-share-alt" aria-hidden="true"></i> |
||||||
<i class="fas fa-share-alt" aria-hidden="true"></i> |
<div class="-mob-share-list share-body"> |
||||||
<div class="-mob-share-list share-body"> |
<% (theme.share||[]).forEach(function(item){ %> |
||||||
<% (theme.share||[]).forEach(function(item){ %> |
<% if (item.id == 'qrcode'){ %> |
||||||
<% if (item.id == 'qrcode'){ %> |
<a class='qrcode' rel="external nofollow noopener noreferrer" href='<%- qrcode(url) %>'> |
||||||
<a class='qrcode' rel="external nofollow noopener noreferrer" href='<%- qrcode(url) %>'> |
<% if (item.img){ %> |
||||||
|
<img src="<%- item.img %>"> |
||||||
|
<% } else if (item.icon){ %> |
||||||
|
<i class="<%- item.icon %> fa-fw"></i> |
||||||
|
<% } %> |
||||||
|
</a> |
||||||
|
<% } else { %> |
||||||
|
<a class="-mob-share-<%- item.id %>" title="<%- item.name %>" rel="external nofollow noopener noreferrer" |
||||||
|
<% if (item.id == 'qzone'){ %> |
||||||
|
href="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=<%- post.permalink %>&title=<%- post.title + ' | ' + config.title %><%- (post.img || config.avatar) ? '&pics=' + (post.img || config.avatar) : '' %>&summary=<%- strip_html(post.excerpt) %>" |
||||||
|
<% } else if (item.id == 'qq'){ %> |
||||||
|
href="http://connect.qq.com/widget/shareqq/index.html?url=<%- post.permalink %>&title=<%- post.title + ' | ' + config.title %><%- (post.img || config.avatar) ? '&pics=' + (post.img || config.avatar) : '' %>&summary=<%- strip_html(post.excerpt) %>" |
||||||
|
<% } else if (item.id == 'weibo'){ %> |
||||||
|
href="http://service.weibo.com/share/share.php?url=<%- post.permalink %>&title=<%- post.title + ' | ' + config.title %><%- (post.img || config.avatar) ? '&pics=' + (post.img || config.avatar) : '' %>&summary=<%- strip_html(post.excerpt) %>" |
||||||
|
<% } %> |
||||||
|
> |
||||||
<% if (item.img){ %> |
<% if (item.img){ %> |
||||||
<img src="<%- item.img %>"> |
<img src="<%- item.img %>"> |
||||||
<% } else if (item.icon){ %> |
<% } else if (item.icon){ %> |
||||||
<i class="<%- item.icon %> fa-fw"></i> |
<i class="<%- item.icon %> fa-fw"></i> |
||||||
<% } %> |
<% } %> |
||||||
</a> |
</a> |
||||||
<% } else { %> |
<% } %> |
||||||
<a class="-mob-share-<%- item.id %>" title="<%- item.name %>" rel="external nofollow noopener noreferrer" |
<% }) %> |
||||||
<% if (item.id == 'qzone'){ %> |
|
||||||
href="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=<%- post.permalink %>&title=<%- post.title + ' | ' + config.title %><%- (post.img || config.avatar) ? '&pics=' + (post.img || config.avatar) : '' %>&summary=<%- strip_html(post.excerpt) %>" |
|
||||||
<% } else if (item.id == 'qq'){ %> |
|
||||||
href="http://connect.qq.com/widget/shareqq/index.html?url=<%- post.permalink %>&title=<%- post.title + ' | ' + config.title %><%- (post.img || config.avatar) ? '&pics=' + (post.img || config.avatar) : '' %>&summary=<%- strip_html(post.excerpt) %>" |
|
||||||
<% } else if (item.id == 'weibo'){ %> |
|
||||||
href="http://service.weibo.com/share/share.php?url=<%- post.permalink %>&title=<%- post.title + ' | ' + config.title %><%- (post.img || config.avatar) ? '&pics=' + (post.img || config.avatar) : '' %>&summary=<%- strip_html(post.excerpt) %>" |
|
||||||
<% } %> |
|
||||||
> |
|
||||||
<% if (item.img){ %> |
|
||||||
<img src="<%- item.img %>"> |
|
||||||
<% } else if (item.icon){ %> |
|
||||||
<i class="<%- item.icon %> fa-fw"></i> |
|
||||||
<% } %> |
|
||||||
</a> |
|
||||||
<% } %> |
|
||||||
<% }) %> |
|
||||||
</div> |
|
||||||
</div> |
</div> |
||||||
<% } %> |
</div> |
||||||
|
Loading…
Reference in new issue