This commit is contained in:
ppoffice 2015-03-20 18:33:17 +08:00
parent 761ede623f
commit 2a8bb22512
4 changed files with 12 additions and 11 deletions

View File

@ -1,7 +1,7 @@
#Icarus #Icarus
### The blog theme you may fall in love with, coming to Hexo. [Preview](http://ppoffice.github.io/hexo-theme-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 ## 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` 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 ### Responsive Layout
Icarus knows on what screen size you are browsering the website, and reorganize the layout to fit your device. 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 ### Fancybox

View File

@ -15,20 +15,20 @@
<% page.posts.each(function(post, i){ %> <% page.posts.each(function(post, i){ %>
<% var year = post.date.year(); %> <% var year = post.date.year(); %>
<% if (last != year){ %> <% if (last != year){ %>
<% if (last != null){ %>
</div></section>
<% } %>
<% last = year; %> <% last = year; %>
<section class="archives-wrap">
<div class="archive-year-wrap"> <div class="archive-year-wrap">
<i class="fa fa-calendar"></i> <i class="fa fa-calendar"></i>
<a href="<%- url_for('archives/' + year) %>" class="archive-year"><%= year %></a> <a href="<%- url_for('archives/' + year) %>" class="archive-year"><%= year %></a>
</div> </div>
<div class="archives">
<% } %> <% } %>
<%- partial('article', {post: post, index: true}) %> <%- partial('article', {post: post, index: true}) %>
<% }) %> <% }) %>
<% if (page.posts.length){ %> <% if (page.total > 1){ %>
</div></section> <nav id="page-nav">
<%- paginator({
prev_text: '&laquo; ' + __('nav.prev'),
next_text: __('nav.next') + ' &raquo;'
}) %>
</nav>
<% } %> <% } %>
<% } %> <% } %>

View File

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

View File

@ -9,6 +9,7 @@
.archive-year-wrap .archive-year-wrap
@extend $block @extend $block
padding: 10px 20px padding: 10px 20px
margin: block-margin 0 -20px 0
.fa .fa
margin-right: 3px margin-right: 3px
.archive-year .archive-year