- {frontmatter.authors.length > 2 ? (
- <>
- {frontmatter.authors
- .slice(0, 2)
- .map((author: Author, index: number) => (
-
- {author.name}
- {index === 0 && ' & '}
-
- ))}
- {'...'}
- >
- ) : (
- frontmatter.authors.map(
- (author: Author, index: number) => (
+
+
+ {frontmatter.authors.length > 2 ? (
+ <>
+ {frontmatter.authors
+ .slice(0, 2)
+ .map((author: Author, index: number) => (
{author.name}
- {index < frontmatter.authors.length - 1 &&
- ' & '}
+ {index === 0 && ' & '}
- ),
- )
- )}
-
-
- {frontmatter.date && (
-
- {date.toLocaleDateString('en-us', {
- year: 'numeric',
- month: 'long',
- day: 'numeric',
- })}
-
- )}{' '}
- · {postTimeToRead} min read
-
+ ))}
+ {'...'}
+ >
+ ) : (
+ frontmatter.authors.map(
+ (author: Author, index: number) => (
+
+ {author.name}
+ {index < frontmatter.authors.length - 1 &&
+ ' & '}
+
+ ),
+ )
+ )}
+
+
+ {frontmatter.date && (
+
+ {date.toLocaleDateString('en-us', {
+ year: 'numeric',
+ month: 'long',
+ day: 'numeric',
+ })}
+
+ )}{' '}