首页列表添加动画效果
This commit is contained in:
@@ -7,6 +7,7 @@ window.themeConfig = {
|
||||
isCategory: <%=is_category()%>, // 是否为分类页面
|
||||
pageid: <%-page.pageid ? `"${page.pageid}"` : 'undefined'%>, // 页面标识, 用于个性化页面开发
|
||||
toc_hide_index: <%=theme.toc_hide_index%>, // 目录序号
|
||||
animate: <%=theme.animate%>, // 是否显示文章列表页动画效果
|
||||
root: '<%=config.root%>', // 资源根路径
|
||||
baseUrl: '<%=config.url%>',
|
||||
pictureCdn: '<%=config.picture_cdn%>' // 图片存储仓库地址
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<% if (param.postIndex === 0 || !param.index){ %>
|
||||
<%- partial('_partial/aside') %>
|
||||
<% } %>
|
||||
<article class="article article-type-<%= post.layout %> <%if(param.index){%> article-index<%}%>" itemscope itemprop="blogPost">
|
||||
<div class="article-outer">
|
||||
<article class="article article-type-<%= post.layout %> <%if(param.index){%>article-index<%}%>" itemscope itemprop="blogPost">
|
||||
<div class="article-inner">
|
||||
<% if (post.link || post.title){ %>
|
||||
<header class="article-header">
|
||||
@@ -86,6 +87,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
<% if (!param.index){ %>
|
||||
<%- partial('post/nav') %>
|
||||
<% } %>
|
||||
|
||||
Reference in New Issue
Block a user