-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.hbs
48 lines (45 loc) · 1.72 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
{{!< default}}
<link rel="stylesheet" type="text/css" href="{{asset "css/article.css"}}" />
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/default.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
{{#post}}
<article class="container" style="margin-top: 100px; max-width: 700px; padding: 20px;">
<header style="padding: 0;">
<div class="media">
<div class="media-content">
<p class="title is-4">{{title}}</p>
<p class="subtitle is-6">
{{#foreach tags}}
<a href="{{url}}">#{{name}}</a>
{{/foreach}}
</p>
</div>
</div>
{{#is "post"}}
<div class="media">
{{#if primary_author.profile_image}}
<div class="media-left">
<figure class="image is-48x48">
<img class="is-rounded" src="{{primary_author.profile_image}}">
</figure>
</div>
{{/if}}
<div class="media-content">
<p class="title is-6"><a href="{{primary_author.url}}">@{{primary_author.name}}</a></p>
<p class="subtitle is-6">
{{date}}
</p>
</div>
</div>
{{/is}}
{{#if feature_image}}
<img src="{{feature_image}}" style="margin-top: 30px;">
{{/if}}
</header>
<section style="margin-top: 30px; margin-bottom: 150px;">
{{content}}
</section>
</article>
{{/post}}