-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom-sponsor-page.hbs
40 lines (33 loc) · 1.25 KB
/
custom-sponsor-page.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
{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} tag of the default.hbs template --}}
<main id="site-main" class="site-main">
<article class="article {{post_class}}">
{{#post}}
<section class="gh-content gh-canvas intro-sponsor-section">
{{content}}
</section>
{{/post}}
<section class="gh-content gh-canvas sponsor-section">
<h1 class="members-title">Sponsorer</h1>
{{#get "pages" limit="all" filter="primary_tag:sponsorship"}}
<div class="{{#match pages.length ">" 2}}members-grid{{/match}}{{#match pages.length "<" 3}}members-flex{{/match}}">
{{#foreach pages}}
{{> "membership-card"}}
{{/foreach}}
</div>
{{/get}}
</section>
<section class="gh-content gh-canvas">
<h1 class="members-title">Medlemmer</h1>
{{#get "pages" limit="all" filter="primary_tag:memberships" order="published_at desc"}}
<div class="{{#match pages.length ">" 2}}members-grid{{/match}}{{#match pages.length "<" 3}}members-flex{{/match}}">
{{#foreach pages}}
{{> "membership-card"}}
{{/foreach}}
</div>
{{/get}}
</div>
</section>
</article>
</main>