-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.hbs
77 lines (73 loc) · 1.98 KB
/
index.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{{!--
This template is used for the index page.
It can be used also as the home page or the default page.
--}}
{{!-- This block preloads specific assets for the home page --}}
{{#contentFor "preload"}}
<link rel="preload" href="{{asset "css/home.css"}}" as="style" />
{{/contentFor}}
{{!-- This block loads specific styles for the home page --}}
{{#contentFor "styles"}}
<link
rel="stylesheet"
type="text/css"
href="{{asset "css/home.css"}}"
media="screen"
/>
{{/contentFor}}
{{!-- The tag below means: insert everything in this file
into the {body} of the default.hbs template --}}
{{!< default}}
<div class="f-main-container">
{{> header}}
<main
class="f-standard-container {{#is "home"}}in-home{{/is}} has-newsletter"
role="main"
>
{{#is "home"}}
{{> hero}}
{{/is}}
<div class="f-standard-wrapper">
{{#is "paged"}}
<h1 class="f-title">
{{t "Articles"}}
</h1>
{{/is}}
<div class="f-posts-container">
{{#foreach posts}}
{{#if @first}}
{{#is "paged"}}
{{#if featured}}
{{> featured-post}}
{{else}}
{{> post-card}}
{{/if}}
{{else}}
{{> latest-post}}
{{/is}}
{{else}}
{{#if featured}}
{{> featured-post}}
{{else}}
{{> post-card}}
{{/if}}
{{/if}}
{{else}}
{{>
empty-content
extra_class="in-posts-loop"
title=(t "No articles were found")
description=(t "Apparently there are no articles at the moment, please check again later.")
}}
{{/foreach}}
</div>
{{!-- Links to Previous/Next posts --}}
{{pagination}}
</div>
</main>
<section class="f-newsletter" aria-label="{{t "Newsletter form"}}">
<div class="f-newsletter__wrapper">
{{> "newsletter-form"}}
</div>
</section>
</div>