Skip to content

Commit ef941b4

Browse files
committed
refactor: URLをexpoからexhibitionに変更
1 parent 9c2f93b commit ef941b4

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

_pages/exhibition.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permalink: /exhibition.json
1111
"creator" : "{{ project.creator | strip_html | escape }}",
1212
"coderdojo_at": "{{ project.coderdojo_at | strip_html | escape }}",
1313
"thumbnail" : "{{ site.url }}/img/2023/exhibition/{{ project.thumbnail }}",
14-
"url_internal": "{{ site.url }}/expo/{{ project.id }}",
14+
"url_internal": "{{ site.url }}/exhibition/{{ project.id }}",
1515
"url_external": "{{ project.url }}"
1616
}{% unless forloop.last %},{% endunless %}{% endfor %}
1717
]

_pages/exhibition.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ permalink: /exhibition/
2121
{% if project.local %}<span class="badge badge-ws">{{ project.local }}</span>{% endif %}
2222
</p>
2323
<div class="my-3">
24-
<a href="/expo/{{ project.id }}">
24+
<a href="/exhibition/{{ project.id }}">
2525
<img class="w-100 px-5" alt="サムネイル"
2626
{% if project.thumbnail %}
2727
src="/img/2023/exhibition/{{ project.thumbnail }}" {% else %}
@@ -36,7 +36,7 @@ permalink: /exhibition/
3636
</p>
3737

3838
<p>
39-
<a href='/expo/{{ project.id }}' class='btn btn-danger btn-sm'>
39+
<a href='/exhibition/{{ project.id }}' class='btn btn-danger btn-sm'>
4040
<i class='fas fa-scroll'></i> 詳細を見る
4141
</a>
4242
</p>

tasks/upsert_project_pages_by_data.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
---
2323
layout: default
2424
title: "#{project[:title]}"
25-
thumbnail: /img/2023/exhibition/#{project[:thumbnail]}
26-
permalink: /expo/#{project[:id]}
25+
thumbnail: /img/exhibition/#{project[:thumbnail]}
26+
permalink: /exhibition/#{project[:id]}
2727
description: #{project[:description]}
2828
---
2929
<h1 style="padding-top: 100px; padding-bottom: 30px; ">#{project[:title]}</h1>
@@ -56,11 +56,11 @@
5656
<i class="fas fa-scroll"></i>
5757
作品を見る
5858
</a>
59-
<a href="https://twitter.com/intent/tweet?text={{ page.title | replace: '&', '%26' }}+%7C+ニンジャ大博覧会&hashtags=DojoConJapan,CoderDojo&url={{ site.url }}/expo/#{project[:id]}&lang=jp&related=DojoConJapan" target="_blank" rel="noopener" class="button" style="margin: 50px auto;">
59+
<a href="https://twitter.com/intent/tweet?text={{ page.title | replace: '&', '%26' }}+%7C+ニンジャ大博覧会&hashtags=DojoConJapan,CoderDojo&url={{ site.url }}/exhibition/#{project[:id]}&lang=jp&related=DojoConJapan" target="_blank" rel="noopener" class="button" style="margin: 50px auto;">
6060
<i class="fab fa-twitter"></i>
6161
作品を共有する
6262
</a>
63-
<a href="https://www.facebook.com/share.php?u={{ site.url }}/expo/#{project[:id]}" target="_blank" rel="noopener" class="button">
63+
<a href="https://www.facebook.com/share.php?u={{ site.url }}/exhibition/#{project[:id]}" target="_blank" rel="noopener" class="button">
6464
<i class="fab fa-facebook"></i>
6565
作品を共有する
6666
</a>
@@ -74,12 +74,12 @@
7474
</div>
7575
7676
<div class="article-navigation" style="margin-bottom: 100px;">
77-
<a href="/expo/#{project_prev[:id]}" title="#{project_prev[:title]}" style="margin-right: 20px;">
77+
<a href="/exhibition/#{project_prev[:id]}" title="#{project_prev[:title]}" style="margin-right: 20px;">
7878
<i class="fas fa-arrow-left"></i>
7979
前の作品へ<br>
8080
<span style="font-size: 8px;">#{t.truncate project_prev[:title], max_length: 11}</span>
8181
</a>
82-
<a href="/expo/#{project_next[:id]}" title="#{project_next[:title]}" style="margin-left: 20px;">
82+
<a href="/exhibition/#{project_next[:id]}" title="#{project_next[:title]}" style="margin-left: 20px;">
8383
次の作品へ
8484
<i class="fas fa-arrow-right"></i><br>
8585
<span style="font-size: 8px;">#{t.truncate project_next[:title], max_length: 11}</span>

0 commit comments

Comments
 (0)