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
### 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

View File

@ -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>
<% } %>
<% } %>

View File

@ -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>

View File

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