-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhome.hbs
181 lines (181 loc) · 5.55 KB
/
home.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
{{!< default}}
{{#get "posts" filter="tag:news" limit="4"}}
<section id="featured" class="splide">
<div class="splide__track">
<ul class="splide__list">
{{#foreach posts}}
<li class="splide__slide">
<a href="{{url}}">
{{#if feature_image}}
{{#if @first }}
<picture>
<source srcset="{{feature_image}}.webp?webp=1&width=640" type="image/webp" width="640">
<img src="{{feature_image}}?width=640" alt="{{title}} feature image" width="640">
</picture>
{{else}}
<picture>
<source data-srcset="{{feature_image}}.webp?webp=1&width=640" type="image/webp" width="640">
<img data-src="{{feature_image}}?width=640" class="lozad" alt="{{title}} feature image" width="640">
</picture>
{{/if}}
{{else}}
<img data-src="{{asset "logo/icon_blue.svg"}}" class="lozad" alt="{{title}} feature image" width="602" height="400">
{{/if}}
<div class="title">
<p>{{date published_at format="YYYY年M月D日"}}</p>
<h1>{{title}}</h1>
</div>
</a>
</li>
{{/foreach}}
</ul>
</div>
</section>
{{/get}}
<section class="about-trap">
<h1>traPについて</h1>
<h2>『デジタル創作<wbr>同好会traP』は、<br>東京科学大学で<wbr>活動する<wbr>デジタル創作・<wbr>プログラミング系<wbr>サークルです。</h2>
<h3>アプリ・ゲームの制作を中心に、音楽(DTM)、グラフィック(イラスト、3DCG、ドット絵、動画)などの創作活動に加え、Webインフラや競技プログラミング・サイバーセキュリティ(CTF)、機械学習(Kaggle)などに関する活動も行っています。</h3>
<a href="/about/" class="readmore">もっと詳しく!</a>
</section>
<section class="pickup">
<h1>活動ピックアップ</h1>
<div class="pickup-series">
<h2><a href="/tag/works/">プロジェクト</a></h2>
<div class="pickup-entries-wrapper">
<div class="pickup-entries">
{{#get "posts" filter="tag:hash-pickups-projects" limit="3"}}
{{> pickups}}
{{/get}}
</div>
</div>
</div>
<div class="pickup-series">
<h2><a href="/algorithm/">アルゴリズム班</a></h2>
<div class="pickup-entries-wrapper">
<div class="pickup-entries">
{{#get "posts" filter="tag:hash-pickups-algorithm" limit="3"}}
{{> pickups}}
{{/get}}
</div>
</div>
</div>
<div class="pickup-series">
<h2><a href="/graphics/">グラフィック班</a></h2>
<div class="pickup-entries-wrapper">
<div class="pickup-entries">
{{#get "posts" filter="tag:hash-pickups-graphics" limit="3"}}
{{> pickups}}
{{/get}}
</div>
</div>
</div>
<div class="pickup-series">
<h2><a href="/game/">ゲーム班</a></h2>
<div class="pickup-entries-wrapper">
<div class="pickup-entries">
{{#get "posts" filter="tag:hash-pickups-game" limit="3"}}
{{> pickups}}
{{/get}}
</div>
</div>
</div>
<div class="pickup-series">
<h2><a href="/sound/">サウンド班</a></h2>
<div class="pickup-entries-wrapper">
<div class="pickup-entries">
{{#get "posts" filter="tag:hash-pickups-sound" limit="3"}}
{{> pickups}}
{{/get}}
</div>
</div>
</div>
<div class="pickup-series">
<h2><a href="/ctf/">CTF班</a></h2>
<div class="pickup-entries-wrapper">
<div class="pickup-entries">
{{#get "posts" filter="tag:hash-pickups-ctf" limit="3"}}
{{> pickups}}
{{/get}}
</div>
</div>
</div>
<div class="pickup-series">
<h2><a href="/sysad/">SysAd班</a></h2>
<div class="pickup-entries-wrapper">
<div class="pickup-entries">
{{#get "posts" filter="tag:hash-pickups-sysad" limit="3"}}
{{> pickups}}
{{/get}}
</div>
</div>
</div>
<div class="pickup-series">
<h2><a href="/kaggle/">Kaggle班</a></h2>
<div class="pickup-entries-wrapper">
<div class="pickup-entries">
{{#get "posts" filter="tag:hash-pickups-kaggle" limit="3"}}
{{> pickups}}
{{/get}}
</div>
</div>
</div>
</section>
<section class="postlist">
<h1>ブログへの投稿</h1>
<div class="articles">
{{#get "posts" include="authors" limit="6"}}
{{#foreach posts}}
{{> post-link}}
{{/foreach}}
{{/get}}
</div>
<div class="readmore-container">
<a href="/page/1/" class="readmore">記事一覧へ</a>
</div>
</section>
<section class="news">
<h1>最新情報</h1>
<div class="news-elements">
<div class="headline">
{{#get "posts" filter="tag:news" limit="6"}}
{{#foreach posts}}
<a href="{{url}}" class="headline-entry">
{{#if feature_image}}
<picture class="lozad" data-alt="{{title}} feature image">
<source srcset="{{feature_image}}.webp?webp=1&width=320" type="image/webp">
<source srcset="{{feature_image}}?width=320">
</picture>
{{else}}
<img class="lozad" data-src="{{asset "logo/icon_blue.svg"}}" alt="{{title}} feature image" width="602" height="400">
{{/if}}
<div class="headline-text">
<small>{{date published_at format="YYYY年M月D日"}}</small>
<span>{{title}}</span>
</div>
</a>
{{/foreach}}
{{/get}}
</div>
<div id="lazy-load-twitter">
<a class="twitter-timeline" data-height="500" href="https://twitter.com/traPtitech">Tweets by traPtitech</a>
</div>
</div>
</section>
<script type="application/ld+json">
{
"@context":"https://schema.org",
"@type":"ItemList",
"itemListElement":[
{{#get "posts" filter="tag:news" limit="4"}}
{{#foreach posts}}
{
"@type":"ListItem",
"position": "{{ @number }}",
"url":"{{ url }}"
}{{#unless @last}},{{/unless}}
{{/foreach}}
{{/get}}
]
}
</script>