This repository has been archived by the owner on May 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
33 lines (31 loc) · 1.5 KB
/
index.html
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
---
layout: gallery
---
<h2 class="contents-header">新着</h2>
<div id="contents">
{%- for member in site.data.member reversed -%}
{%- if member.content_type -%}
<div class="content-card" {%- if member.content_type == 'music' -%} style="width:360px;" {%- endif -%}>
{%- if member.content_type != 'tweed' -%}
<h3 class="content-header"><a href="https://twitter.com/{{ member.tw }}">{{ member.name }}</a></h3>
{%- endif-%}
<div style="padding: 5px;">
{%- case member.content_type -%}
{%- when 'illus'-%}
<img class="content content--image" src="{{ member.content }}" alt="{{ member.name }} せんせえが投稿した画像">
{%- when 'music' -%}
{{ member.content }}
{%- when 'text' -%}
<div class="content content--text"><a href="/text/{{ member.tw}}.html">{{member.tw}}.txt</a></div>
{%- when 'game' -%}
<a href="/game/{{ member.tw }}"><img class="content content--image" src="https://raw.githubusercontent.com/sana-nantori-1st-anniversary/game/master/{{ member.tw }}/screen-shot.png" alt="{{ member.name }} せんせえが投稿したゲームのスクリーンショット"></a>
{%- when 'tweed' -%}
<div class="content content--tweed">{{member.content}}</div>
{%- when 'web' -%}
<div class="content content--text">{{member.content}}</div>
{%- endcase -%}
</div>
</div>
{%- endif -%}
{%- endfor -%}
</div>