copyright: false # Copyright of theme and framework 中间文章列表美化 打开创建的css文件(ahzoo.css),添加下面的代码 /* 首页文章 */ #recent-posts hover .recent-post-info .content { opacity: 1; line-height: 2; transition: all .3s; } #recent-posts recent-post-item>.recent-post-info>.content { opacity: 0; line-height: .7; transition: all .3s; } #recent-posts >.recent-post-item .post_cover img.post_bg { border-radius: 30px; padding: 15px } #recent-posts
操作 在\themes\butterfly\source\css路径下创建一个xxx.css文件,在文件中添加如下代码: /* 首页文章栏背景透明 */ #recent-posts>.recent-post-item ,.layout_page>div:first-child:not(.recent-posts),.layout_post>#page,.layout_post>#post,.read-mode .layout_post
以下代表透明度为0.5 可以自行修改*/ background: rgba(255,255,255,.5); } /* 所有页面背景 */ #aside_content .card-widget, #recent-posts >.recent-post-item, .layout_page>div:first-child:not(.recent-posts), .layout_post>#page, .layout_post
priority: 5 # 过滤器优先权 enable_page: all # 应用页面 # butterfly挂载容器 layout: type: id name: recent-posts 不同主题挂载容器不同,根据应用主题进行配置即可 layout参数配置(挂载容器)/主题 butterfly volantis matery mengd type id class id class name recent-posts enable_page: all # 应用页面 timemode: date # date/updated layout: # 挂载容器类型 type: id name: recent-posts {temple_html_item}
important // PC端滑动卡片样式 @media screen and (min-width:1069px) .recent-posts padding 0 15px 0 15px left 32px // 双栏布局卡片自适应适配 @media screen and (min-width:572px) and (max-width:1068px) .recent-posts important nav#pagination width: 100% // 卡片单元布局样式 .recent-posts padding 0 15px 0 15px display polygon(0 0,100% 0,50% 100%) top 20px // 三栏布局滑动卡片样式 @media screen and (min-width:1069px) .recent-posts width 47% margin 0px 3% 20px 0px // 单栏布局卡片自适应适配 @media screen and (max-width:572px) .recent-posts
enable: true priority: 3 enable_page: / user: gongjuecloak layout: type: id name: recent-posts background_color: "#f2f2f2" background_hover_color: "#b30070" layout: type: id name: recent-posts
enable_page: all # 应用页面 timemode: date #date/updated layout: # 挂载容器类型 type: class name: recent-posts : true # 开关 priority: 5 #过滤器优先权 enable_page: / # 应用页面 layout: # 挂载容器类型 type: id name: recent-posts
important; } /* 夜间模式遮罩 */ [data-theme="dark"] #recent-posts > .recent-post-item, [data-theme="dark"] : true # 开关 priority: 5 #过滤器优先权 enable_page: / # 应用页面 layout: # 挂载容器类型 type: id name: recent-posts 最后墙的名字即是 name;
} {{ end }} {{ if not .Site.Params.recentposts.hide }} {{ partial "recent-posts
time')) } else { GLOBAL_CONFIG.relativeDate.homepage && relativeDate(document.querySelectorAll('#recent-posts
background:rgba(255,255,255,0.5) /* 首页文章卡片 */ #recent-posts > .recent-post-item{ background:rgba(
article-content-bgcolor: #99999a --recent-post-triangle: #37e2dd --recent-post-cover-shadow: #232323 .recent-posts
0 width: 60%; //平板宽度双栏样式适配 @media screen and (min-width:468px) and (max-width:900px) #recent-posts
comment">/* 所有背景(包括首页卡片、文章页、页面页等) */ #aside_content .card-widget, #recent-posts >.recent-post-item, .layout_page>div:first-child:not(.recent-posts), .layout_post>#page, .layout_post