Skip to content

Commit

Permalink
refactor: actor以外にもeditorの概念を追加するので、actor_id -> member_idに名前を変更
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoeyes02 committed Apr 11, 2023
1 parent c937dcb commit a9424b5
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 12 deletions.
8 changes: 4 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
actors:
members:
02:
image_url: /images/actors/02.jpg
image_url: /images/members/02.jpg
name: "02"
url: https://twitter.com/cocoeyes02
zoe:
image_url: /images/actors/zoe.jpeg
image_url: /images/members/zoe.jpeg
name: "zoe"
url: https://twitter.com/for__3
okashoi:
image_url: /images/actors/okashoi.png
image_url: /images/members/okashoi.png
name: "okashoi"
url: https://twitter.com/okashoi
author: 02
Expand Down
4 changes: 2 additions & 2 deletions _layouts/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ <h2>
出演者
</h2>
<div class="article-actors">
{% for actor_id in page.actor_ids %}
{% assign actor = site.actors[actor_id] %}
{% for member_id in page.actor.member_ids %}
{% assign actor = site.members[member_id] %}
<a href="{{ actor.url }}" class="actor" target="_blank">
<img src="{{ actor.image_url | prepend:site.github.url }}" alt="{{ actor.name }}" class="actor-image" width="72" height="72">
<br>
Expand Down
9 changes: 5 additions & 4 deletions _posts/2023-04-01-1.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
actor_ids:
- 02
- okashoi
- zoe
actor:
member_ids:
- 02
- okashoi
- zoe
audio_file_path: /audio/1.mp3
audio_file_size: 0
date: 2023-04-01 00:00:00 +0900
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ <h1 class="list-group-element-heading">
{{ post.description }}
</p>
<div class="list-group-element-images">
{% for actor_id in post.actor_ids %}
{% assign actor = site.actors[actor_id] %}
{% for member_id in post.actor.member_ids %}
{% assign actor = site.members[member_id] %}
<img src="{{ actor.image_url | prepend:site.github.url }}" alt="{{ actor.name }}" class="list-group-element-images-element" width="40" height="40">
{% endfor %}
</div>
Expand Down

0 comments on commit a9424b5

Please sign in to comment.