首页列表添加动画效果

This commit is contained in:
结发受长生
2019-08-24 20:52:28 +08:00
parent 7c165816f4
commit 62eb074a57
9 changed files with 92 additions and 21 deletions
@@ -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%>' // 图片存储仓库地址
+3 -1
View File
@@ -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') %>
<% } %>