-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathfeatured-posts.hbs
More file actions
39 lines (32 loc) · 1.3 KB
/
featured-posts.hbs
File metadata and controls
39 lines (32 loc) · 1.3 KB
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
{{#get "posts" filter="featured:true" limit="20" include="tags" as |featured|}}
{{#if featured}}
<section class="featured-wrapper">
<header class="featured-header topic-header">
<h2 class="featured-title topic-name">{{t "Featured"}}</h2>
</header>
<div class="featured-posts owl">
{{#foreach featured}}
<article class="{{post_class}}">
<figure class="post-media">
<div class="u-placeholder same-height horizontal">
<a class="post-image-link" href="{{url}}">
{{#if feature_image}}
<img class="post-image u-object-fit" src="{{img_url feature_image size="l"}}" alt="{{title}}">
{{/if}}
</a>
</div>
</figure>
<header class="post-header">
<h2 class="post-title">
<a class="post-title-link" href="{{url}}">{{title}}</a>
</h2>
</header>
{{#primary_tag}}
<a class="post-tag tag-{{slug}}" href="{{url}}" title="{{name}}">{{name}}</a>
{{/primary_tag}}
</article>
{{/foreach}}
</div>
</section>
{{/if}}
{{/get}}