This repository has been archived by the owner on Oct 31, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
post.hbs
45 lines (45 loc) · 2.06 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
{{!< default}}
{{> "header"}}
{{#post}}
<main class="post">
<div class="post__inner">
<article class="content content__post">
<section class="post__header">
<h1 class="post__title">{{title}}</h1>
</section>
<section class="post__byline">
<p class="post__byline__text light-text--italic">{{t "Published on"}} <time datetime="{{date format='DD-MM-YYYY'}}">{{date format="DD MMM YYYY"}}</time> in {{#primary_tag}}<a title="{{name}}" href="{{url}}">{{name}}</a>{{/primary_tag}}</p>
</section>
<figure class="post__image">
<img srcset="{{img_url feature_image size="s"}} 300w,
{{img_url feature_image size="m"}} 600w,
{{img_url feature_image size="l"}} 1000w,
{{img_url feature_image size="xl"}} 2000w"
sizes="(max-width: 800px) 400px,
(max-width: 1170px) 1170px,
2000px"
src="{{img_url feature_image size="xl"}}"
alt="{{title}}"
/>
</figure>
<div class="post__content">
{{content}}
</div>
<section class="post__tags">
{{#if tags}}
<p class="post__tags__text">Schlagwörter:</p>
<ul class="post__tags__ul">
{{#foreach tags}}
<li class="post__tags__li">
<a href="{{url}}" title="{{name}}" class="tag tag-{{id}} {{slug}}">{{name}}</a>
</li>
{{/foreach}}
</ul>
{{/if}}
</section>
{{> "author-post"}}
</article>
{{> "pagination-post"}}
</div>
</main>
{{/post}}