diff options
| author | Fuwn <[email protected]> | 2023-09-13 14:20:21 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-09-13 14:20:21 -0700 |
| commit | fd3be5f91f512ccd623cbd711b5f2bdcc9c756cb (patch) | |
| tree | 7d0ff1a109feadb9d2983c4e7334610cac6bed29 /src | |
| parent | feat(updates): hidden direct link (diff) | |
| download | due.moe-fd3be5f91f512ccd623cbd711b5f2bdcc9c756cb.tar.xz due.moe-fd3be5f91f512ccd623cbd711b5f2bdcc9c756cb.zip | |
feat(updates): italic titles
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/updates/+page.svelte | 4 |
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> |