aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-09-13 14:20:21 -0700
committerFuwn <[email protected]>2023-09-13 14:20:21 -0700
commitfd3be5f91f512ccd623cbd711b5f2bdcc9c756cb (patch)
tree7d0ff1a109feadb9d2983c4e7334610cac6bed29 /src
parentfeat(updates): hidden direct link (diff)
downloaddue.moe-fd3be5f91f512ccd623cbd711b5f2bdcc9c756cb.tar.xz
due.moe-fd3be5f91f512ccd623cbd711b5f2bdcc9c756cb.zip
feat(updates): italic titles
Diffstat (limited to 'src')
-rw-r--r--src/routes/updates/+page.svelte4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/routes/updates/+page.svelte b/src/routes/updates/+page.svelte
index ead0ce13..2a9333ab 100644
--- a/src/routes/updates/+page.svelte
+++ b/src/routes/updates/+page.svelte
@@ -35,6 +35,8 @@
.replace(/\? ~.*$/, '')
.trim();
}
+
+ const italicTitle = (title: string) => title.replace(/^(.*?) Ch\.|\bOneshot\b/, '<i>$1</i> Ch.');
</script>
<div id="list-container">
@@ -61,7 +63,7 @@
reformat(item.title)
)}&sort=SEARCH_MATCH`}
>
- {reformat(item.title)}
+ {@html italicTitle(reformat(item.title))}
</a>
{/if}
</li>