-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.hbs
29 lines (22 loc) · 1.28 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
{{!< default}}
{{!-- This is a page template. A page outputs content just like any other post, and has all the same
attributes by default, but you can also customise it to behave differently if you prefer. --}}
{{!-- Everything inside the #post tags pulls data from the page --}}
{{#post}}
<div class="content-post" {{#if feature_image}}style="background-image: url({{feature_image}});background-size: cover;background-position: 50%;"{{else}}style="background-image: url(https://cdn.con.sh/id/533/1980/500);background-size: cover;background-position: 50%;"{{/if}}>
<div class="cp-header">
<h2>{{title}}</h2>
</div>
</div>
<div class="article">
{{content}}
<div class="back-to-top">
<hr>
<i class="fa fa-calendar"></i> {{date format="YYYY-MM-DD"}} {{tags prefix=" <i class=\"fa fa-tag\"></i> "}} <i class="fa fa-chevron-circle-up"></i> <a href="#">TOP</a>
</div>
</div>
<div class="comments" id="comments"></div>
<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release/build/styles/default.min.css">
<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release/build/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
{{/post}}