diff --git a/_config.example.yml b/_config.example.yml index bfea092df..22b9a5722 100644 --- a/_config.example.yml +++ b/_config.example.yml @@ -8,7 +8,6 @@ favicon: type: image/png # 图标类型,可能的值有(image/png, image/vnd.microsoft.icon, image/x-icon, image/gif) function: # 功能开关,可选值(true,false) - pjax: false # Pjax 无刷新加载页面,暂时存在较大问题 avatarRotateZ: false # 头像旋转 clickHeart: false # 鼠标点击小心心 ♥ globalToc: false # 开启该功能会自动开启文章 TOC(文章目录) 功能 diff --git a/layout/archive.ejs b/layout/archive.ejs index b52e9ddb2..e8f77d124 100644 --- a/layout/archive.ejs +++ b/layout/archive.ejs @@ -1,14 +1,23 @@ +
+ <% page.posts.each(function (page) { %>
-
- <% if (page.cover){ %> - <%= page.title %> - <%} else{ %> - <%= page.title %> - <% } %> -

<%= page.title %>

-
+ <% if (page.cover){ %> +
+ <%= page.title %> +

<%= page.title %>

+
+ <% } else { %> +
+ <%= page.title %> +

<%= page.title %>

+
+ <% } %>
+
+ <% }) %>
<%- partial('_partial/paginator') %> \ No newline at end of file diff --git a/layout/index.ejs b/layout/index.ejs index 2ecdc1377..4fdc54476 100644 --- a/layout/index.ejs +++ b/layout/index.ejs @@ -1,4 +1,4 @@ -
+
<% page.posts.each(function (page) { %>
diff --git a/source/css/style.styl b/source/css/style.styl index dee9dcdb1..fbdaa4da9 100644 --- a/source/css/style.styl +++ b/source/css/style.styl @@ -350,7 +350,7 @@ body { h1 { position: absolute; bottom: 0; - padding: 15px; + padding: 20px; color: #fff; font-size: 2em; width: 100%; @@ -361,8 +361,10 @@ body { font-weight: normal; } h1:after { - background-image: -webkit-linear-gradient(to top,rgba(10,17,25,.2) 10%,rgba(10,17,25,0) 100%); - background-image: linear-gradient(to top,rgba(10,17,25,.2) 10%,rgba(10,17,25,0) 100%); + background-image: -moz-linear-gradient(to top, rgba(16,16,16,0.45) 25%, rgba(16,16,16,0) 100%); + background-image: -webkit-linear-gradient(to top, rgba(16,16,16,0.45) 25%, rgba(16,16,16,0) 100%); + background-image: -ms-linear-gradient(to top, rgba(16,16,16,0.45) 25%, rgba(16,16,16,0) 100%); + background-image: linear-gradient(to top, rgba(16,16,16,0.45) 25%, rgba(16,16,16,0) 100%); -moz-pointer-events: none; -webkit-pointer-events: none; -ms-pointer-events: none;