Skip to content

Commit 1c405a9

Browse files
feat: Allow mod titles to be a hyperlink to a Modrinth page.
1 parent 90f125b commit 1c405a9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/ProjectCard.astro

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ if (showUserInfo) {
6565
style={iconPicture ? `background-image: url(${iconPicture});` : ""}>
6666
</span>
6767
<div>
68-
<h1 class="pb-1 text-lg font-bold text-black dark:text-white">
69-
{obtainedMod.title}
70-
</h1>
68+
<h1 class="pb-1 text-lg font-bold text-black hover:text-gray-600 dark:text-white dark:hover:text-gray-300">
69+
<a href=`https://modrinth.com/project/${submission.modrinth_id}`>
70+
{obtainedMod.title}
71+
</a>
72+
</h1>
7173
{showUserInfo && (<div> By:
7274
{projectAuthors.length > 0
7375
? projectAuthors.map((author) => (

0 commit comments

Comments
 (0)