Skip to content

Commit

Permalink
Update 2017.02.09
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoluoboding committed Feb 9, 2017
1 parent d64defb commit acbbd21
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 45 deletions.
2 changes: 1 addition & 1 deletion assets/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"<div class='archives-year'>" +
"<h3><time datetime='" + uniqueYear[i] + "'>" + uniqueYear[i] + "</time></h3>" +
"</div></div>";
$("[date='"+uniqueYear[i]+"']:first").before(html);
$("[date='" + uniqueYear[i] + "']:first").before(html);
}
});

Expand Down
85 changes: 41 additions & 44 deletions page-archives-post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,51 +6,48 @@
{{! Everything inside the #post tags pulls data from the page }}
{{#post}}

<header class="main-header">
<nav class="container main-nav clearfix">
<div class="main-nav-title pull-left">
<a class="blog-title" href="{{@blog.url}}">{{@blog.title}}</a>
</div>
{{#if @blog.navigation}}
{{navigation}}
{{/if}}
</nav>
</header>
<header class="main-header">
<nav class="container main-nav clearfix">
<div class="main-nav-title pull-left">
<a class="blog-title" href="{{@blog.url}}">{{@blog.title}}</a>
</div>
{{#if @blog.navigation}}
{{navigation}}
{{/if}}
</nav>
</header>

{{! The main container area on the homepage }}
<main id="container" class="container" role="main">
<div id="content" class="content col-sm-12 col-md-12 col-lg-12">
<article class="archives">
<header class="archives-header">
</header>
<section class="archives-content">
<span class="archives-top"></span>
<span class="archives-total">
{{! count posts }}
{{#get "posts" as |posts postPages|}}
{{! Use our pages (pagination) object }}
<strong>目前共计{{postPages.total}}篇日志,继续努力!</strong>
{{/get}}
</span>
{{#get "posts" limit="all" order="published_at desc"}}
<!-- <div class="archives-title">
<time class="archives-date" datetime="{{date format='YYYY'}}">{{date format="YYYY"}}</time>
</div> -->
{{#foreach posts}}
<div class='archives-item' date="{{date format='YYYY'}}" data-anijs="if: scroll, on: window, do: fadeInDown animated, before: scrollReveal">
<div class='archives-info'>
<div class="archives-info-meta">
<i class='fa fa-calendar fa-fw' aria-hidden='true'></i>
<time class="archives-date" datetime="{{date published_at format='MM-DD'}}">{{date published_at format="MM-DD"}}</time>
<a href='{{url}}'>{{title}}</a>
</div>
</div>
</div>
{{/foreach}}
{{! The main container area on the homepage }}
<main id="container" class="container" role="main">
<div id="content" class="content col-sm-12 col-md-12 col-lg-12">
<article class="archives">
<header class="archives-header">
</header>
<section class="archives-content">
<span class="archives-top"></span>
<span class="archives-total">
{{! count posts }}
{{#get "posts" as |posts postPages|}}
{{! Use our pages (pagination) object }}
<strong>目前共计{{postPages.total}}篇日志,继续努力!</strong>
{{/get}}
</section>
</article>
<div>
</main>
</span>
{{#get "posts" limit="all" order="published_at desc"}}
{{#foreach posts}}
<div class='archives-item' date="{{date format='YYYY'}}" data-anijs="if: scroll, on: window, do: fadeInDown animated, before: scrollReveal">
<div class='archives-info'>
<div class="archives-info-meta">
<i class='fa fa-calendar fa-fw' aria-hidden='true'></i>
<time class="archives-date" datetime="{{date published_at format='MM-DD'}}">{{date published_at format="MM-DD"}}</time>
<a href='{{url}}'>{{title}}</a>
</div>
</div>
</div>
{{/foreach}}
{{/get}}
</section>
</article>
<div>
</main>

{{/post}}

0 comments on commit acbbd21

Please sign in to comment.