Skip to content

Conversation

@sKawashima
Copy link
Member

以下の部分を調整するだけでSoundCloudの楽曲表示増やせるようにした

/**
 * 更新方法
 * SoundCloud の楽曲ページでShare > Embed >  Code を取得し、traks/ 直後の数字をworks配列に追加する。
 * 新しいものほど**下**に追加する。
 * 例:
 * <iframe width="100%" height="300" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/493911225&color=%236f725e&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe><div style="font-size: 10px; color: #cccccc;line-break: anywhere;word-break: normal;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; font-family: Interstate,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Garuda,Verdana,Tahoma,sans-serif;font-weight: 100;"><a href="https://soundcloud.com/trinity-trio" title="Trinity Trio" target="_blank" style="color: #cccccc; text-decoration: none;">Trinity Trio</a> · <a href="https://soundcloud.com/trinity-trio/grenada" title="grenada" target="_blank" style="color: #cccccc; text-decoration: none;">grenada</a></div>
 * この場合、works配列に'493911225'を追加する。
 */

const works = [
  '493909566',
  '493909692',
  '493909863',
  '493910124',
  '493910787',
  '493911225',
  '494605326',
]

HTML standards and improve file consistency
✨ (Works.astro): update the works array to include new SoundCloud track
IDs and add instructions for updating the array
♻️ (Works.astro): refactor the rendering of SoundCloud tracks to use
map function for better maintainability and readability
…nused

sections. This improves clarity and focuses on the essential commands for
users, enhancing the overall documentation experience.
@sKawashima sKawashima self-assigned this Feb 16, 2025
@sKawashima sKawashima merged commit 515a826 into master Feb 16, 2025
2 checks passed
@sKawashima sKawashima deleted the works-to-dinamic branch February 16, 2025 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants