|
6 | 6 | {{! Everything inside the #post tags pulls data from the page }} |
7 | 7 | {{#post}} |
8 | 8 |
|
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> |
19 | 19 |
|
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> |
50 | 33 | {{/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> |
55 | 52 |
|
56 | 53 | {{/post}} |
0 commit comments