forked from TryGhost/Casper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
page-portal.hbs
117 lines (99 loc) · 2.65 KB
/
page-portal.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{{!< default }}
{{#post}}
{{! Post navbar }}
<nav class="navbar shaded fixed autohide">
<div class="navbar--row container">
<!-- Icon -->
<div class="navbar--icon">
<a class="ripple" href="{{@blog.url}}">
<i class="mdi mdi-arrow-left"></i>
</a>
</div>
<!-- Title -->
<span class="navbar--title">{{title}}</span>
</div>
</nav>
{{! Post header }}
<header class="header shaded bg-darken">
<!-- Navbar -->
<nav class="navbar">
<div class="navbar--row container">
<div class="navbar--icon">
<a class="ripple" href="{{@blog.url}}">
<i class="mdi mdi-arrow-left"></i>
</a>
</div>
</div>
</nav>
<!-- Content -->
<div class="header--content onBottom container">
<!-- Titles -->
<h1 class="header--title">{{title}}</h1>
<h5 class="header--subtitle">
<i class="mdi mdi-calendar"></i>
<time datetime="{{date format='YYYY-MM-DD'}}"
itemprop="datePublished">
{{date format='DD MMM YYYY'}}
</time>
</h5>
</div>
<!-- Background -->
{{#if feature_image}}
<img class="bg-image" src="{{img_url feature_image}}" />
{{else}}{{#if @blog.cover_image}}
<img class="bg-image" src="{{@blog.cover_image}}" />
{{/if}}{{/if}}
</header>
<!-- Fabs -->
<div class="fabbar large">
<div class="fabbar--content container">
{{> "sharefab"}}
</div>
</div>
{{! Post Main }}
<main class="main" role="main">
<article class="main--content container" role="article">
{{! Content }}
<div class="post--content">{{content}}</div>
<div class="divider"></div>
{{! Tags }}
<div class="post--tags half">
{{#foreach tags}}
<a class="ripple" href="{{url}}" title="{{name}}">{{name}}</a>
{{/foreach}}
</div>
{{! Author }}
<div class="post--author">
{{#author}}{{> "author"}}{{/author}}
</div>
<div class="author-meta">
{{plural ../pagination.total empty='No posts' singular='% post' plural='% posts'}}
</div>
</section>
{{/author}}
<main role="main">
<!-- includes the post loop - partials/loop.hbs -->
{{> "loop"}}
</main>
<!-- Previous/next page links - displayed on every page -->
{{pagination}}
</article>
</main>
{{! Comments }}
<div>
<div id="disqus_thread" class="container"></div>
</div>
{{! Next and previous }}
<aside class="side">
<div class="side--content container">
<div class="side--left">
{{#next_post}}{{> "navcard"}}{{/next_post}}
<span class="msg">No newer post</span>
</div>
<div class="side--right">
{{#prev_post}}{{> "navcard"}}{{/prev_post}}
<span class="msg">No older post</span>
</div>
</div>
</aside>
{{/post}}