-
-
Notifications
You must be signed in to change notification settings - Fork 68
/
post.hbs
77 lines (64 loc) · 3.2 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
{{!< default}}
{{#post}}
<section class="section is-mobile-paddingless">
<div class="columns">
<div class="column is-hidden-touch is-1-desktop is-1-widescreen is-2-fullhd"></div>
<div class="column is-12-tablet is-10-desktop is-10-widescreen is-8-fullhd">
<article class="single-article">
{{!-- featured_image --}}
{{#if feature_image}}
<div class="box is-paddingless is-shadowless is-full-mobile is-centered">
<section class="featured-image">
<div class="featured-image" style="background-image:url({{img_url feature_image size="wide"}});">
{{!-- featured post label --}}
{{#if featured}}
<span class="featured-label large is-montserrat" title="Featured Post"><i class="iconfont icon-star"></i> {{t "Featured"}}</span>
{{/if}}
</div>
</section>
{{else}}
<div class="box is-paddingless is-shadowless is-full-mobile is-centered">
<div class="spacing-25 is-hidden-mobile"></div>
{{/if}}
<section class="post-wrap is-vpadding-15">
{{!-- meta --}}
<div class="has-2-ends is-montserrat is-uppercase is-size-7">
<div class="end date">{{date format=(t "DD MMMM YYYY")}}</div>
<div class="end reading_time">{{reading_time minute=(t "1 min read") minutes=(t "% min read")}}</div>
</div>
{{!-- title --}}
<h1 class="title is-montserrat">{{title}}</h1>
{{!-- tags --}}
{{#has tag="count:>0"}}
<div class="buttons tags has-text-weight-semibold">
<span class="button is-static is-size-7-mobile" style="padding:0 0.5em;min-width:2.5em">
{{#has tag="count:1"}}<i class="iconfont icon-tag"></i>{{/has}}
{{#has tag="count:>1"}}<i class="iconfont icon-tags"></i>{{/has}}
</span>
{{#foreach tags}}
<a href="{{url}}" class="button is-light is-size-7-mobile has-text-weight-semibold">{{name}}</a>
{{/foreach}}
</div>
{{/has}}
{{!-- content --}}
<div class="content post-content is-size-6-mobile is-georgia">{{content}}</div>
{{!-- author box --}}
{{> "post/post_author"}}
</section>
</div>
</article>
</div>
<div class="column is-hidden-touch">
<div id="toc"></div>
</div>
</div>
</section>
{{!-- toc --}}
{{> "post/post_toc"}}
{{!-- aside section (related post, prev & next) --}}
{{> "post/post_aside"}}
{{!-- post footer for js --}}
{{> "post/post_footer"}}
{{!-- comment --}}
{{> "post/post_comment"}}
{{/post}}