Skip to content

Commit 9877a05

Browse files
add fics links in the preview and use the real ao3.js
1 parent 0c63876 commit 9877a05

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

astro-ao3-loader/__examples__/astro-5/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

astro-ao3-loader/__examples__/astro-5/src/pages/index.astro

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,16 @@ const series = await getCollection("series");
2828
) : (
2929
<li>
3030
<div>
31-
{fic.data.title} by {fic.data.authors[0].pseud} (
32-
{fic.data.rating})
31+
<a href={`https://archiveofourown.org/works/${fic.data.id}/`}>
32+
{fic.data.title}
33+
</a>{" "}
34+
by{" "}
35+
<a
36+
href={`https://archiveofourown.org/users/${fic.data.authors[0].username}/pseuds/${fic.data.authors[0].pseud}`}
37+
>
38+
{fic.data.authors[0].pseud}
39+
</a>{" "}
40+
({fic.data.rating})
3341
</div>
3442
<div class="relationships">
3543
Relationships: {fic.data.tags.relationships.join(", ")}

0 commit comments

Comments
 (0)