-
Notifications
You must be signed in to change notification settings - Fork 18
/
post.hbs
64 lines (44 loc) · 1.67 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
{{!< default}}
{{>content-header}}
<main class="container content" id="content">
<article class="post {{post_class}}">
{{#post}}
<header class="post__header">
<h1 class="post__title">{{title}}</h1>
<div class="post__meta">
Posted by {{#primary_author}}<a href="{{url}}">{{name}}</a>{{/primary_author}} on
<time class="post__date" datetime="{{date format='YYYY-MM-DD'}}">
{{date format="MMMM Do, YYYY"}}.
</time>
{{#if tags}}
<span class="post__tags">
{{tags prefix="Tagged "}}
</span>
{{/if}}
</div>
</header>
<section class="post__content">
{{#if access}}
{{content}}
{{else}}
<p>You don't have access to this post on <strong>{{@site.title}}</strong> at the moment, but if you upgrade your account you'll be able to see the whole thing, as well as all the other posts in the archive! Subscribing only takes a few seconds and will give you immediate access.</p>
<aside style="text-align: center;">
{{#if @member}}
<h2>This post is for paying subscribers only</h2>
{{else}}
<h2>This post is for subscribers only</h2>
{{/if}}
<a class="button large primary" href="/signup/">Subscribe now</a>
<p><small>Already have an account? <a href="/signin/">Sign in</a></small></p>
</aside>
{{/if}}
</section>
<hr>
<footer class="post__footer">
{{> subscribe-widget}}
{{> author-info}}
{{comments}}
</footer>
{{/post}}
</article>
</main>