added pagination to a given authors page

This commit is contained in:
wymiller committed 2025-07-07 21:05:27 -04:00
1 parent a64b8fdceb
commit 6694f47d70
16 files changed
+350 -93

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
export const truncateString = (str: string, maxLength: number) => {
str = str.replace(/<[^>]*>/g, "");
return str.length > maxLength ? `${str.slice(0, maxLength)}...` : str;
};