Skip to content

Commit ff450b1

Browse files
author
mizphses
committedDec 14, 2020
layoutをコミットしてなかった
1 parent ca4c0fe commit ff450b1

File tree

6 files changed

+113
-5
lines changed

6 files changed

+113
-5
lines changed
 

‎_config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ github_username:
3333
plugins:
3434
- jekyll-feed
3535

36+
collections:
37+
pages:
38+
output: true
39+
3640
defaults:
3741
- scope:
3842
path: ""

‎_includes/navbar.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
<a class="nav-item nav-link active" href="{{site.url}}/session">セッション</a>
1717
<a class="nav-item nav-link active" href="{{site.url}}/event">イベント企画</a>
1818
<a class="nav-item nav-link active" href="{{site.url}}/contest">コンテスト</a>
19-
<a class="nav-item nav-link active" href="{{site.url}}/workshop">ワークショップ</a>
20-
<a class="nav-item nav-link active" href="{{site.url}}#contactus">お問い合わせ</a>
19+
<a class="nav-item nav-link active" href="{{site.url}}/workshop">ワークショップ</a>
20+
<a class="nav-item nav-link active" href="{{site.url}}/dojo-jiman">Dojo自慢</a>
21+
<a class="nav-item nav-link active" href="{{site.url}}#contactus">お問い合わせ</a>
2122
</div>
2223
</div>
2324

‎_layouts/jiman_media.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
layout: default
3+
---
4+
{% if page.categories %}
5+
<div class="post-head">
6+
<h2 class="font-weight-bold">{{page.categories[0] }}</h2>
7+
</div>
8+
{% endif %}
9+
10+
<div class="post">
11+
<h1 class="post-title font-weight-bold">{{ page.title }}</h1>
12+
13+
{% if page.categories[0] == "news" %}
14+
<p class="post-date">{{ page.date | date:"%Y.%-m.%-d" }}</p>
15+
{% elsif page.categories[0] == "workshop" or page.categories[0] == "session" %}
16+
<div class="tags">
17+
{% for tag in page.tags %}
18+
<span class="tag-post">{{tag}}</span>
19+
{% endfor %}
20+
</div>
21+
<p class="post-time">{{page.time}}</p>
22+
{%endif%}
23+
24+
25+
<div class='post-content mt-5'>
26+
{{ content }}
27+
28+
<hr>
29+
<div class="row">
30+
<div class="col-2">
31+
{% if page.dojo_icon %}
32+
<img src="https://raw.githubusercontent.com/coderdojo-japan/coderdojo.jp/master/public/img/dojos/{{page.dojo_icon}}.png" />
33+
{% else %}
34+
<img src="https://coderdojo.jp/img/dojos/coderdojo.png" />
35+
{% endif %}
36+
</div>
37+
<div class="col-10">
38+
<p class="text-left font-weight-bold h4">{{ page.dojo_name }}</p>
39+
<p class="text-left">{{ page.dojo_desciption }}</p>
40+
</div>
41+
</div>
42+
43+
<a href="/dojo-jiman/" class="btn btn-red"><i class="fas fa-chevron-circle-left"></i> 一覧に戻る</a>
44+
<br />
45+
<a href="/" class="btn btn-red"><i class="fas fa-chevron-circle-left"></i> トップページに戻る</a>
46+
</div>
47+
48+
</div>

‎_layouts/jiman_text.html

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
layout: default
3+
---
4+
{% if page.categories %}
5+
<div class="post-head">
6+
<h2>{{page.categories[0] }}</h2>
7+
</div>
8+
{% endif %}
9+
10+
<div class="post">
11+
<h1 class="post-title">{{ page.title }}</h1>
12+
13+
{% if page.categories[0] == "news" %}
14+
<p class="post-date">{{ page.date | date:"%Y.%-m.%-d" }}</p>
15+
{% elsif page.categories[0] == "workshop" or page.categories[0] == "session" %}
16+
<div class="tags">
17+
{% for tag in page.tags %}
18+
<span class="tag-post">{{tag}}</span>
19+
{% endfor %}
20+
</div>
21+
<p class="post-time">{{page.time}}</p>
22+
{%endif%}
23+
24+
<div class='post-content mt-5'>
25+
26+
{% if page.thumbnail %}
27+
<img src="{{site.url}}/img/post/{{page.thumbnail}}" />
28+
{% else %}
29+
<img src="{{site.url}}/img/ogp_1.png" />
30+
{% endif %}
31+
32+
{{ content }}
33+
<hr>
34+
<div class="row">
35+
<div class="col-2">
36+
{% if page.dojo_icon %}
37+
<img src="https://raw.githubusercontent.com/coderdojo-japan/coderdojo.jp/master/public/img/dojos/{{page.dojo_icon}}.png" />
38+
{% else %}
39+
<img src="https://coderdojo.jp/img/dojos/coderdojo.png" />
40+
{% endif %}
41+
</div>
42+
<div class="col-10">
43+
<p class="text-left font-weight-bold h4">{{ page.dojo_name }}</p>
44+
<p class="text-left">{{ page.dojo_desciption }}</p>
45+
</div>
46+
</div>
47+
48+
<a href="/dojo-jiman/" class="btn btn-red"><i class="fas fa-chevron-circle-left"></i> 一覧に戻る</a>
49+
<br />
50+
<a href="/" class="btn btn-red"><i class="fas fa-chevron-circle-left"></i> トップページに戻る</a>
51+
</div>
52+
53+
</div>

‎_pages/dojo-jiman/jiman-fuga.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010
dojo_icon:
1111
permalink: /dojo-jiman/fuga/
1212
---
13-
以下の動画をご覧ください!
14-
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/pQ6bVZfj4Ak?controls=0" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
13+
<p class="text-center h3">以下の動画をご覧ください!</p>
14+
<div class="text-center">
15+
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/pQ6bVZfj4Ak?controls=0" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
16+
</div>
1517

1618
<!--あるいは-->
17-
PDF資料をダウンロード!
19+
<p class="text-center h3">PDF資料を見る</p>
1820
<a class="button" href="hoge.pdf">ダウンロード</a>

‎img/post/jiman/hoge1.png

94.7 KB
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.