ppoffice 10 년 전
부모
커밋
2a8bb22512
4개의 변경된 파일12개의 추가작업 그리고 11개의 파일을 삭제
  1. 3 3
      README.md
  2. 7 7
      layout/_partial/archive.ejs
  3. 1 1
      layout/layout.ejs
  4. 1 0
      source/css/_partial/archive.styl

+ 3 - 3
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
 

+ 7 - 7
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){ %>
-        </div></section>
-      <% } %>
       <% last = year; %>
-      <section class="archives-wrap">
         <div class="archive-year-wrap">
           <i class="fa fa-calendar"></i>
           <a href="<%- url_for('archives/' + year) %>" class="archive-year"><%= year %></a>
         </div>
-        <div class="archives">
     <% } %>
     <%- partial('article', {post: post, index: true}) %>
   <% }) %>
-  <% if (page.posts.length){ %>
-    </div></section>
+  <% if (page.total > 1){ %>
+    <nav id="page-nav">
+      <%- paginator({
+        prev_text: '&laquo; ' + __('nav.prev'),
+        next_text:  __('nav.next') + ' &raquo;'
+      }) %>
+    </nav>
   <% } %>
 <% } %>

+ 1 - 1
layout/layout.ejs

@@ -1,7 +1,7 @@
 <%- partial('_partial/head') %>
 <body>
   <div id="container">
-    <%- partial('_partial/header', null, {cache: !config.relative_link}) %>
+    <%- partial('_partial/header') %>
     <div class="outer">
       <%- partial('_partial/profile', null, {cache: !config.relative_link}) %>
       <section id="main"><%- body %></section>

+ 1 - 0
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