parent
c9b7c5f2af
commit
46727537aa
7 changed files with 145 additions and 138 deletions
@ -0,0 +1,60 @@ |
|||||||
|
<% if(is_home() || is_category() || is_archive() || is_tag()) { |
||||||
|
var isPostList = true; |
||||||
|
} else { |
||||||
|
var isPostList = false; |
||||||
|
} %> |
||||||
|
<section class='meta'> |
||||||
|
<% if((!isPostList && post.music) || (isPostList && post.music && post.music.enable == true)){ %> |
||||||
|
<div class="aplayer" data-mini=true |
||||||
|
data-mode="circulation" data-volume="0.7" |
||||||
|
data-server="<%= post.music.server %>" |
||||||
|
data-type="<%= post.music.type %>" |
||||||
|
data-id="<%= post.music.id %>"> |
||||||
|
</div> |
||||||
|
<% } %> |
||||||
|
<div class="meta" id="header-meta"> |
||||||
|
<% if(isPostList){ %> |
||||||
|
<h2 class="title"> |
||||||
|
<a href="<%- url_for(post.path) %>"> |
||||||
|
<% if(post.title){ %> |
||||||
|
<%= post.title %> |
||||||
|
<% } else if (post.date) { %> |
||||||
|
<%= date(post.date, config.date_format) %> |
||||||
|
<% } %> |
||||||
|
</a> |
||||||
|
</h2> |
||||||
|
<% } else { %> |
||||||
|
<% if(post.title){ %> |
||||||
|
<h1 class="title"><%= post.title %></h1> |
||||||
|
<% } else if (post.date) { %> |
||||||
|
<h1 class="title"><%= date(post.date, config.date_format) %></h1> |
||||||
|
<% } %> |
||||||
|
<% } %> |
||||||
|
|
||||||
|
<% if(post.date){ %> |
||||||
|
<time class="time"> |
||||||
|
<i class="fas fa-calendar-alt fa-fw" aria-hidden="true"></i> |
||||||
|
<%= date(post.date, config.date_format) %> |
||||||
|
</time> |
||||||
|
<% } %> |
||||||
|
|
||||||
|
<% if(post.categories){ %> |
||||||
|
<%- partial('categories',{post:post}) %> |
||||||
|
<% } %> |
||||||
|
|
||||||
|
<% if(!isPostList){ %> |
||||||
|
<% if (post.visitors_count != false && config.leancloud && config.leancloud.app_id && config.leancloud.app_key) { %> |
||||||
|
<div class="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 %>"> |
||||||
|
<span class="leancloud-visitors-count"><i class="fas fa-spinner fa-spin fa-fw" aria-hidden="true"></i></span> |
||||||
|
</span> |
||||||
|
</div> |
||||||
|
<% } else { %> |
||||||
|
<div class="browse busuanzi"><i class="fas fa-eye fa-fw" aria-hidden="true"></i> |
||||||
|
<span id="busuanzi_value_page_pv"><i class="fas fa-spinner fa-spin fa-fw" aria-hidden="true"></i></span> |
||||||
|
</div> |
||||||
|
<% } %> |
||||||
|
<% } %> |
||||||
|
|
||||||
|
</div> |
||||||
|
</section> |
@ -1 +1 @@ |
|||||||
<%- partial('_partial/archive') %> |
<%- partial('_partial/archive') %> |
||||||
|
@ -1,31 +1,35 @@ |
|||||||
<% if (page.links){ %> |
<article id="<%= page.layout %>" class="post white-box article-type-<%= page.layout %>" itemscope itemprop="blogPost"> |
||||||
<% (page.links||[]).forEach(function(group){ %> |
<%- partial('_partial/meta',{post:page}) %> |
||||||
<% if(group.items) { %> |
<section class="article typo"> |
||||||
<section class='m_widgets' id='mywidgset'> |
<% if (page.links){ %> |
||||||
<% if(group.type) { %> |
<% (page.links||[]).forEach(function(group){ %> |
||||||
<% if (group.icon) { %> |
<% if(group.items) { %> |
||||||
<i class="<%= group.icon %> fa-fw" aria-hidden="true"></i><h2 class='header'><%= group.type %></h2> |
<section class='m_widgets' id='mywidgset'> |
||||||
<%} else {%> |
<% if(group.type) { %> |
||||||
<h2 class='header'><%= group.type %></h2> |
<% if (group.icon) { %> |
||||||
<%} %> |
<i class="<%= group.icon %> fa-fw" aria-hidden="true"></i><h2 class='header'><%= group.type %></h2> |
||||||
<%} %> |
<%} else {%> |
||||||
<% (group.items||[]).forEach(function(item){ %> |
<h2 class='header'><%= group.type %></h2> |
||||||
<div class='friend-wrapper'> |
<%} %> |
||||||
<div class='friend-left'> |
<%} %> |
||||||
<img class='avatar' src='<%= url_for(item.avatar ? item.avatar : "https://img.vim-cn.com/a4/87a96e2e01b1180bba1e76e190df5220378c1a.png") %>'/> |
<% (group.items||[]).forEach(function(item){ %> |
||||||
</div> |
<div class='friend-wrapper'> |
||||||
<div class='friend-right'> |
<div class='friend-left'> |
||||||
<h3><%= item.name %></h3> |
<img class='avatar' src='<%= url_for(item.avatar ? item.avatar : "https://img.vim-cn.com/a4/87a96e2e01b1180bba1e76e190df5220378c1a.png") %>'/> |
||||||
<p><%= item.desc %></p> |
</div> |
||||||
<div class='friend-tags-wrapper'> |
<div class='friend-right'> |
||||||
<% (item.tags||[]).forEach(function(tag){ %> |
<h3><%= item.name %></h3> |
||||||
<a class="tags"><%= tag %></a> |
<p><%= item.desc %></p> |
||||||
|
<div class='friend-tags-wrapper'> |
||||||
|
<% (item.tags||[]).forEach(function(tag){ %> |
||||||
|
<a class="tags"><%= tag %></a> |
||||||
|
<% }) %> |
||||||
|
</div> |
||||||
|
</div> |
||||||
<% }) %> |
<% }) %> |
||||||
</div> |
</section> |
||||||
</div> |
<%} %> |
||||||
<% }) %> |
<% }) %> |
||||||
</section> |
<% } %> |
||||||
<%} %> |
</section> |
||||||
<% }) %> |
</article> |
||||||
<% } %> |
|
||||||
<%- partial('_partial/article', {post: page, index: false}) %> |
|
||||||
|
Loading…
Reference in new issue