Skip to content

Commit acbbd21

Browse files
committed
Update 2017.02.09
1 parent d64defb commit acbbd21

2 files changed

Lines changed: 42 additions & 45 deletions

File tree

assets/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
"<div class='archives-year'>" +
124124
"<h3><time datetime='" + uniqueYear[i] + "'>" + uniqueYear[i] + "</time></h3>" +
125125
"</div></div>";
126-
$("[date='"+uniqueYear[i]+"']:first").before(html);
126+
$("[date='" + uniqueYear[i] + "']:first").before(html);
127127
}
128128
});
129129

page-archives-post.hbs

Lines changed: 41 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -6,51 +6,48 @@
66
{{! Everything inside the #post tags pulls data from the page }}
77
{{#post}}
88

9-
<header class="main-header">
10-
<nav class="container main-nav clearfix">
11-
<div class="main-nav-title pull-left">
12-
<a class="blog-title" href="{{@blog.url}}">{{@blog.title}}</a>
13-
</div>
14-
{{#if @blog.navigation}}
15-
{{navigation}}
16-
{{/if}}
17-
</nav>
18-
</header>
9+
<header class="main-header">
10+
<nav class="container main-nav clearfix">
11+
<div class="main-nav-title pull-left">
12+
<a class="blog-title" href="{{@blog.url}}">{{@blog.title}}</a>
13+
</div>
14+
{{#if @blog.navigation}}
15+
{{navigation}}
16+
{{/if}}
17+
</nav>
18+
</header>
1919

20-
{{! The main container area on the homepage }}
21-
<main id="container" class="container" role="main">
22-
<div id="content" class="content col-sm-12 col-md-12 col-lg-12">
23-
<article class="archives">
24-
<header class="archives-header">
25-
</header>
26-
<section class="archives-content">
27-
<span class="archives-top"></span>
28-
<span class="archives-total">
29-
{{! count posts }}
30-
{{#get "posts" as |posts postPages|}}
31-
{{! Use our pages (pagination) object }}
32-
<strong>目前共计{{postPages.total}}篇日志,继续努力!</strong>
33-
{{/get}}
34-
</span>
35-
{{#get "posts" limit="all" order="published_at desc"}}
36-
<!-- <div class="archives-title">
37-
<time class="archives-date" datetime="{{date format='YYYY'}}">{{date format="YYYY"}}</time>
38-
</div> -->
39-
{{#foreach posts}}
40-
<div class='archives-item' date="{{date format='YYYY'}}" data-anijs="if: scroll, on: window, do: fadeInDown animated, before: scrollReveal">
41-
<div class='archives-info'>
42-
<div class="archives-info-meta">
43-
<i class='fa fa-calendar fa-fw' aria-hidden='true'></i>
44-
<time class="archives-date" datetime="{{date published_at format='MM-DD'}}">{{date published_at format="MM-DD"}}</time>
45-
<a href='{{url}}'>{{title}}</a>
46-
</div>
47-
</div>
48-
</div>
49-
{{/foreach}}
20+
{{! The main container area on the homepage }}
21+
<main id="container" class="container" role="main">
22+
<div id="content" class="content col-sm-12 col-md-12 col-lg-12">
23+
<article class="archives">
24+
<header class="archives-header">
25+
</header>
26+
<section class="archives-content">
27+
<span class="archives-top"></span>
28+
<span class="archives-total">
29+
{{! count posts }}
30+
{{#get "posts" as |posts postPages|}}
31+
{{! Use our pages (pagination) object }}
32+
<strong>目前共计{{postPages.total}}篇日志,继续努力!</strong>
5033
{{/get}}
51-
</section>
52-
</article>
53-
<div>
54-
</main>
34+
</span>
35+
{{#get "posts" limit="all" order="published_at desc"}}
36+
{{#foreach posts}}
37+
<div class='archives-item' date="{{date format='YYYY'}}" data-anijs="if: scroll, on: window, do: fadeInDown animated, before: scrollReveal">
38+
<div class='archives-info'>
39+
<div class="archives-info-meta">
40+
<i class='fa fa-calendar fa-fw' aria-hidden='true'></i>
41+
<time class="archives-date" datetime="{{date published_at format='MM-DD'}}">{{date published_at format="MM-DD"}}</time>
42+
<a href='{{url}}'>{{title}}</a>
43+
</div>
44+
</div>
45+
</div>
46+
{{/foreach}}
47+
{{/get}}
48+
</section>
49+
</article>
50+
<div>
51+
</main>
5552

5653
{{/post}}

0 commit comments

Comments
 (0)