From 2a8bb22512b52e49722d8e7d75a9ec6a69e4950d Mon Sep 17 00:00:00 2001 From: ppoffice Date: Fri, 20 Mar 2015 18:33:17 +0800 Subject: [PATCH] fix doc --- README.md | 6 +++--- layout/_partial/archive.ejs | 14 +++++++------- layout/layout.ejs | 2 +- source/css/_partial/archive.styl | 1 + 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 2b1d5ef..e301161 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ #Icarus ### The blog theme you may fall in love with, coming to Hexo. [Preview](http://ppoffice.github.io/hexo-theme-icarus/) -![](/hexo-theme-icarus/gallery/preview.jpg "") +![](http://ppoffice.github.io/hexo-theme-icarus/gallery/preview.jpg "") ## Installation @@ -115,13 +115,13 @@ language: zh-CN A nice place to show yourself. You can add your own information in your site's `_config.yml` -![](/hexo-theme-icarus/gallery/profile.png "") +![](http://ppoffice.github.io/hexo-theme-icarus/gallery/profile.png "") ### Responsive Layout Icarus knows on what screen size you are browsering the website, and reorganize the layout to fit your device. -![](/hexo-theme-icarus/gallery/responsive.jpg "") +![](http://ppoffice.github.io/hexo-theme-icarus/gallery/responsive.jpg "") ### Fancybox diff --git a/layout/_partial/archive.ejs b/layout/_partial/archive.ejs index efe1234..64c98de 100644 --- a/layout/_partial/archive.ejs +++ b/layout/_partial/archive.ejs @@ -15,20 +15,20 @@ <% page.posts.each(function(post, i){ %> <% var year = post.date.year(); %> <% if (last != year){ %> - <% if (last != null){ %> - - <% } %> <% last = year; %> -
-
<% } %> <%- partial('article', {post: post, index: true}) %> <% }) %> - <% if (page.posts.length){ %> -
+ <% if (page.total > 1){ %> + <% } %> <% } %> \ No newline at end of file diff --git a/layout/layout.ejs b/layout/layout.ejs index fbc501c..004325d 100644 --- a/layout/layout.ejs +++ b/layout/layout.ejs @@ -1,7 +1,7 @@ <%- partial('_partial/head') %>
- <%- partial('_partial/header', null, {cache: !config.relative_link}) %> + <%- partial('_partial/header') %>
<%- partial('_partial/profile', null, {cache: !config.relative_link}) %>
<%- body %>
diff --git a/source/css/_partial/archive.styl b/source/css/_partial/archive.styl index ef3aabf..38383b9 100644 --- a/source/css/_partial/archive.styl +++ b/source/css/_partial/archive.styl @@ -9,6 +9,7 @@ .archive-year-wrap @extend $block padding: 10px 20px + margin: block-margin 0 -20px 0 .fa margin-right: 3px .archive-year