-
Notifications
You must be signed in to change notification settings - Fork 19
/
post.hbs
92 lines (86 loc) · 2.53 KB
/
post.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{{!< default}}
<div class="row page post">
<div class="slidenav">
<aside id="menu" class="blue-grey darken-1" style="background-size:cover;background-position:0 bottom;background-image:url({{@blog.cover_image}});">
<div class="bg-container">
<div class="profile">
<div class="avatar">
<a href="#open"><img src="{{@blog.logo}}" class="no-z-depth-4"></a>
<span>{{@blog.title}}</span>
<p>{{@blog.description}}</p>
</div>
<div class="short-line"></div>
{{navigation}}
<div class="short-line short"></div>
{{> link}}
</div>
</div>
</aside>
<div class="closeslide"></div>
</div>
<main>
{{#post}}
<nav>
<header class="nav-wrapper blue-grey">
<div>
<a id="show-slide-nav"><i class="fa fa-bars fa-lg"></i></a>
<p>
<span class="header-title">{{@blog.title}}</span>
<span class="post-title">{{title}}</span>
</p>
<span></span>
</div>
</header>
</nav>
<div class="contents content-in z-depth-2">
<article class="posts-content markdown-body">
<p class="posts-title">{{title}}</p>
<span class="post-time"><i class="fa fa-calendar"></i> {{date format="YYYY-MM-DD HH:mm:ss"}}</span>
<div class="post-html">
{{content}}
</div>
</article>
</div>
<div class="row more-article content-in">
{{#prev_post}}
<div class="col s6" style="padding-left:0;">
<div class="card">
<a href="{{url}}" class="readmore"></a>
<div class="card-image card-pre">
{{#if feature_image}}
<img src="{{feature_image}}">
{{else}}
<img src="">
{{/if}}
<span class="card-title">{{title}}</span>
</div>
<div class="card-content"><p>{{excerpt}}</p></div>
<div class="card-action"><a href="{{url}}">前一篇</a></div>
</div>
</div>
{{/prev_post}}
{{#next_post}}
<div class="col s6" style="padding-right:0;">
<div class="card">
<a href="{{url}}" class="readmore"></a>
<div class="card-image card-next">
{{#if feature_image}}
<img src="{{feature_image}}">
{{else}}
<img src="">
{{/if}}
<span class="card-title">{{title}}</span>
</div>
<div class="card-content"><p>{{excerpt}}</p></div>
<div class="card-action" style="text-align: right;"><a href="{{url}}">后一篇</a></div>
</div>
</div>
{{/next_post}}
{{> comments}}
</div>
{{/post}}
<div class="content-in" style="margin-top: 50px;">
{{> footer}}
</div>
</main>
</div>