generated from TryGhost/Starter
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcustom-modern-open-source.hbs
98 lines (94 loc) · 3.01 KB
/
custom-modern-open-source.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{{!-- This template is used to render the precise layout of /open-source --}}
{{!< default}}
{{#post}}
<div id="modern">
<div class="{{post_class}}">
<h1>{{title}}</h1>
<div class="two-up">{{content}}</div>
</div>
<div class="{{post_class}} program-news">
{{#get "pages" filter="slug:program-news"}}
{{#foreach pages}}
<h3>Program News</h3>
<ul>
{{#get "posts" order="desc, title asc" filter="tag:[news]"}}
{{#foreach posts limit="3"}}
<li>{{#link href=(url)}}{{title}}{{/link}}</li>
{{/foreach}}
{{/get}}
</ul>
</div>
{{/foreach}}
{{/get}}
<div class="{{post_class}} mission-and-vision">
{{#get "pages" filter="tag:[hash-oss-our-vision, hash-oss-our-mission]"}}
{{#foreach pages}}
<div class="column">
<h3>{{title}}</h3>
{{{html}}}
</div>
{{/foreach}}
{{/get}}
</div>
<div class="{{post_class}} projects">
<h2>Projects</h2>
<h3>Learn more about our current and past efforts</h3>
<div class="projects-list">
{{#get "pages" order="featured desc, title asc" filter="tag:[hash-oss-project]"}}
{{#foreach pages}}
<div class="{{post_class}} project">
<h3>{{title}}</h1>
{{{html}}}
</div>
{{/foreach}}
{{/get}}
</div>
<div class="contribute">
{{#get "pages" filter="tag:[hash-oss-contribute]"}}
{{#foreach pages}}
{{#if feature_image}}
<img src="{{feature_image}}" alt="{{title}}" class="feature-image">
{{/if}}
<h3>{{title}}</h1>
<div>{{content}}</div>
{{/foreach}}
{{/get}}
</div>
</div>
<div class="post" aria-labelledby="team-heading">
<h2 id="team-heading">Team</h2>
<h3>Meet the people behind our program</h3>
<div class="grid">
{{#get "pages" order="featured desc, title asc" filter="tags:hash-oss-team" limit="all" include="feature_image"}}
{{#foreach pages}}
<figure>
{{#if feature_image}}
<img src="{{feature_image}}" alt="{{title}}" class="feature-image team-photo">
{{/if}}
<figcaption class="team-info">
<p class="team-name">{{title}}</p>
{{content}}
</figcaption>
</figure>
{{/foreach}}
{{/get}}
</div>
</div>
<div class="{{post_class}} program-support">
{{#get "pages" filter="tag:[hash-oss-program-support]"}}
{{#foreach pages}}
<h2>{{title}}</h2>
{{{content}}}
<span>Program-Specific Funding</span>
<span>Donated Services</span>
<span>Memberships</span>
<span>Corporate Sponsorships</span>
</div>
{{/foreach}}
{{/get}}
</div>
</div>
{{/post}}
{{#contentFor 'scripts'}}
<script src="{{asset 'dist/post.js'}}" defer></script>
{{/contentFor}}