Skip to content

Commit dabc6fc

Browse files
author
y-yamasaki
committed
サムネ修正
1 parent ea4ef8f commit dabc6fc

File tree

5 files changed

+27
-11
lines changed

5 files changed

+27
-11
lines changed

assets/js/portfolio.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ document.addEventListener("DOMContentLoaded", async () => {
155155
thumb.className = "portfolio-thumb";
156156
if (work.thumbnail) {
157157
const img = document.createElement("img");
158-
img.src = post.thumbnail;
159-
img.alt = post.title;
158+
img.src = work.thumbnail;
159+
img.alt = work.title;
160160
thumb.appendChild(img);
161161
}
162162

content/portfolio/pagelist.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
"android"
1313
],
1414
"contentPath": "content/portfolio/portfolio_0002.md",
15-
"links": {}
15+
"thumbnail": "https://private-user-images.githubusercontent.com/89498861/383873637-f0314371-190f-43a0-981b-a94f501a2adc.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjMwMjEwODYsIm5iZiI6MTc2MzAyMDc4NiwicGF0aCI6Ii84OTQ5ODg2MS8zODM4NzM2MzctZjAzMTQzNzEtMTkwZi00M2EwLTk4MWItYTk0ZjUwMWEyYWRjLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTExMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMTEzVDA3NTk0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUxMWUwZGNmNThlNDExM2QzMzBmMzZmMmNiMmRkZTc2MWZlNjk5MDFlZGQ4ZTk5MmMwODI1YTVhZDgwNTg4ZmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.WVbatYNy61tVVYsX85W7t3QzRD0shyfnJSUG5BtxZv8",
16+
"links": {
17+
"GameCreatorsCamp": "https://game-creators.camp/recruits/DALbqHqjLTaGNTMDVpvC",
18+
"Youtube": "https://www.youtube.com/@%E3%81%8F%E3%81%84%E3%81%97%E3%82%93%E3%81%BC%E3%81%86%E3%82%AF%E3%83%9E%E3%81%AE%E7%94%9F%E6%B4%BB/featured"
19+
}
1620
},
1721
{
1822
"id": "portfolio_0001",
@@ -27,6 +31,11 @@
2731
"pc"
2832
],
2933
"contentPath": "content/portfolio/portfolio_0001.md",
30-
"links": {}
34+
"thumbnail": "https://shared.fastly.steamstatic.com/store_item_assets/steam/apps/2806350/header_japanese.jpg?t=1710480483",
35+
"links": {
36+
"storepage": "https://store.steampowered.com/app/2806350/_/",
37+
"GameCreatorsCamp": "https://game-creators.camp/games/37683783/Reimei_no_Yu",
38+
"X": "https://x.com/shi_ro_Gorilla/"
39+
}
3140
}
3241
]

content/portfolio/portfolio_0001.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ role: Full Stack Enginner
44
tech: Unity / C#
55
platform: PC/Steam
66
description: 8番ライクホラー
7-
store page: https://store.steampowered.com/app/2806350/_/
8-
Game Creators Camp: https://game-creators.camp/games/37683783/Reimei_no_Yu
9-
チームリーダーX: https://x.com/shi_ro_Gorilla/
107
tags: game, steam, pc
8+
storepage: https://store.steampowered.com/app/2806350/_/
9+
GameCreatorsCamp: https://game-creators.camp/games/37683783/Reimei_no_Yu
10+
X: https://x.com/shi_ro_Gorilla/
11+
thumbnail: https://shared.fastly.steamstatic.com/store_item_assets/steam/apps/2806350/header_japanese.jpg?t=1710480483
1112
---
1213

1314
## 開発元 : Studio ShiroGorilla

content/portfolio/portfolio_0002.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ tech: "Unity / C#
55
platform: android, ios
66
description: カジュアル
77
contentPath: content/portfolio/portfolio_0002.md
8-
Game Creators Camp: https://game-creators.camp/recruits/DALbqHqjLTaGNTMDVpvC
9-
チームリーダーYoutube: https://www.youtube.com/@%E3%81%8F%E3%81%84%E3%81%97%E3%82%93%E3%81%BC%E3%81%86%E3%82%AF%E3%83%9E%E3%81%AE%E7%94%9F%E6%B4%BB/featured
8+
GameCreatorsCamp: https://game-creators.camp/recruits/DALbqHqjLTaGNTMDVpvC
9+
Youtube: https://www.youtube.com/@%E3%81%8F%E3%81%84%E3%81%97%E3%82%93%E3%81%BC%E3%81%86%E3%82%AF%E3%83%9E%E3%81%AE%E7%94%9F%E6%B4%BB/featured
1010
tags: game, ios, android
11+
thumbnail: https://private-user-images.githubusercontent.com/89498861/383873637-f0314371-190f-43a0-981b-a94f501a2adc.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjMwMjEwODYsIm5iZiI6MTc2MzAyMDc4NiwicGF0aCI6Ii84OTQ5ODg2MS8zODM4NzM2MzctZjAzMTQzNzEtMTkwZi00M2EwLTk4MWItYTk0ZjUwMWEyYWRjLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTExMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMTEzVDA3NTk0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUxMWUwZGNmNThlNDExM2QzMzBmMzZmMmNiMmRkZTc2MWZlNjk5MDFlZGQ4ZTk5MmMwODI1YTVhZDgwNTg4ZmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.WVbatYNy61tVVYsX85W7t3QzRD0shyfnJSUG5BtxZv8
1112
---
1213
1314
## 開発元 : Game Creators Shool

tools/generate-pagelists.mjs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,14 @@ async function generatePortfolio() {
110110
const platform = meta.platform || "";
111111
const description = meta.description || "";
112112
const tags = parseTags(meta.tags);
113+
const thumbnail = meta.thumbnail;
113114

114115
const links = {};
115-
if (meta.detail) links.detail = meta.detail;
116-
if (meta.github) links.github = meta.github;
116+
if (meta.storepage) links.storepage = meta.storepage;
117+
if (meta.GameCreatorsCamp)
118+
links.GameCreatorsCamp = meta.GameCreatorsCamp;
119+
if (meta.X) links.X = meta.X;
120+
if (meta.Youtube) links.Youtube = meta.Youtube;
117121

118122
entries.push({
119123
id,
@@ -124,6 +128,7 @@ async function generatePortfolio() {
124128
description,
125129
tags,
126130
contentPath: `content/portfolio/${file}`,
131+
thumbnail,
127132
links,
128133
});
129134
}

0 commit comments

Comments
 (0)