Skip to content

Commit c567513

Browse files
authored
Merge pull request #112 from GoCon/update-session-202509012229
💄 tagLineに"-"や"_"が含まれる場合は会社名を非表示にするようにした
2 parents d7eaaed + 0952f2e commit c567513

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

src/components/Timetable/SpeakerInfo.astro

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,12 @@ if (!speaker) {
132132
}
133133
</div>
134134
</div>
135-
{/* 会社名を表示する場合はコメントアウト解除する */}
136-
{/* <p class="speaker-tagline">{speaker.tagLine}</p> */}
135+
{
136+
// "-"または"_" の場合は会社名を表示しない
137+
!["-", "_"].includes(speaker.tagLine ?? "") && (
138+
<p class="speaker-tagline">{speaker.tagLine}</p>
139+
)
140+
}
137141
</header>
138142
<p class="speaker-bio">{speaker.bio}</p>
139143
</article>

src/data/sessions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@
359359
"speakers": [
360360
{
361361
"id": "4926b4e4-5468-4cf7-abdf-2b5b05eca1b7",
362-
"name": "Chihiro"
362+
"name": "chihiro"
363363
}
364364
],
365365
"categories": [

src/data/speakers.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@
204204
"id": "4926b4e4-5468-4cf7-abdf-2b5b05eca1b7",
205205
"firstName": "",
206206
"lastName": "",
207-
"fullName": "Chihiro",
207+
"fullName": "chihiro",
208208
"bio": "2023/04 からGo言語を始めました。主にWebシステムのサーバサイドの開発を行っています。",
209-
"tagLine": "Morisawa inc.",
209+
"tagLine": "-",
210210
"profilePicture": "https://sessionize.com/image/69db-400o400o1-Eq5vvYaFAjj4pFEvBw4Ub5.jpg",
211211
"sessions": [
212212
{

src/data/timetable.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@
12601260
"speakers": [
12611261
{
12621262
"id": "4926b4e4-5468-4cf7-abdf-2b5b05eca1b7",
1263-
"name": "Chihiro"
1263+
"name": "chihiro"
12641264
}
12651265
],
12661266
"categories": [
@@ -1892,7 +1892,7 @@
18921892
"speakers": [
18931893
{
18941894
"id": "4926b4e4-5468-4cf7-abdf-2b5b05eca1b7",
1895-
"name": "Chihiro"
1895+
"name": "chihiro"
18961896
}
18971897
],
18981898
"categories": [

0 commit comments

Comments
 (0)