-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.hbs
38 lines (31 loc) · 1.61 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
{{!< default}}
<main role="main">
<article class="{{post_class}}">
{{! Everything inside the #post tags pulls data from the post }}
{{#post}}
{{#contentFor "socialmeta"}}
<meta property="twitter:card" content="summary">
<meta property="twitter:site" content="@rihards">
<meta property="twitter:title" content="{{title}}">
<meta property="twitter:description" content="{{excerpt words="16"}}...">
<meta property="twitter:image" content="{{@blog.url}}{{asset "images/[email protected]"}}">
<meta property="twitter:url" content="{{url absolute="true"}}">
<meta property="og:site_name" content="{{@blog.title}}">
<meta property="og:title" content="{{title}}">
<meta property="og:type" content="blog">
<meta property="og:description" content="{{excerpt words="16"}}...">
<meta property="og:url" content="{{url absolute="true"}}">
<meta property="og:image" content="{{@blog.url}}{{asset "images/[email protected]"}}">
{{/contentFor}}
<article class="{{post_class}}">
<header class="post-header">
<h1 class="post-title"><a href="{{url}}">{{title}}</a></h1>
<p class="date post-meta"><time datetime="{{date published_at format='YYYY-MM-DD'}}">{{date published_at format="MMMM YYYY"}}</time></p>
</header>
<section class="content">
{{content}}
</section>
</article>
{{/post}}
</article>
</main>