aboutsummaryrefslogtreecommitdiff
path: root/src/routes/updates/+page.svelte
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-12-16 01:19:59 -0800
committerFuwn <[email protected]>2023-12-16 01:20:25 -0800
commit0c5879b15a5ef26b87913ce571c190fcb2fea8d8 (patch)
tree2dabee0d9886a713b42e656c777d88702d04d925 /src/routes/updates/+page.svelte
parentfix(updates): link to anilist (diff)
downloaddue.moe-0c5879b15a5ef26b87913ce571c190fcb2fea8d8.tar.xz
due.moe-0c5879b15a5ef26b87913ce571c190fcb2fea8d8.zip
fix(updates): better display title link
Diffstat (limited to 'src/routes/updates/+page.svelte')
-rw-r--r--src/routes/updates/+page.svelte9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/routes/updates/+page.svelte b/src/routes/updates/+page.svelte
index 97e856de..7b3a0f6c 100644
--- a/src/routes/updates/+page.svelte
+++ b/src/routes/updates/+page.svelte
@@ -41,8 +41,10 @@
.replace(/\? ~.*$/, '')
.trim();
- const italicTitle = (title: string) =>
- title.replace(/^(.*?) (Vol\.|Ch\.|\bOneshot\b)/, '<i>$1</i> $2');
+ // const italicTitle = (title: string) =>
+ // title.replace(/^(.*?) (Vol\.|Ch\.|\bOneshot\b)/, '<i>$1</i> $2');
+
+ const chapterTitle = (title: string) => title.replace(/^(.*?) (Vol\.|Ch\.|\bOneshot\b)/, '$2');
</script>
<div id="list-container">
@@ -69,8 +71,9 @@
reformatChapter(item.title)
)}&sort=SEARCH_MATCH`}
>
- {@html italicTitle(reformatChapter(item.title))}
+ <i>{@html clipTitle(reformatChapter(item.title))}</i>
</a>
+ {@html chapterTitle(reformatChapter(item.title))}
{/if}
</li>
{/each}