Skip to content

Commit e03c0f0

Browse files
committed
chore: remove initials logic
1 parent 94e77e1 commit e03c0f0

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

app/components/OgImage/BlogPost.vue

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,6 @@ const formattedDate = computed(() => {
3535
3636
const MAX_VISIBLE_AUTHORS = 2
3737
38-
const getInitials = (name: string) =>
39-
name
40-
.split(' ')
41-
.map(n => n[0])
42-
.join('')
43-
.toUpperCase()
44-
.slice(0, 2)
45-
4638
const visibleAuthors = computed(() => {
4739
console.log('blog post 5', props.authors)
4840
if (props.authors.length <= 3) return props.authors
@@ -114,15 +106,15 @@ const formattedAuthorNames = computed(() => {
114106
class="flex items-center justify-center rounded-full border border-[#050505] bg-[#1a1a1a] overflow-hidden w-12 h-12"
115107
:style="{ marginLeft: index > 0 ? '-20px' : '0' }"
116108
>
117-
<img
109+
<!-- <img
118110
v-if="author.avatar"
119111
:src="author.avatar"
120112
:alt="author.name"
121113
class="w-full h-full object-cover"
122114
/>
123115
<span v-else style="font-size: 20px; color: #666; font-weight: 500">
124116
{{ getInitials(author.name) }}
125-
</span>
117+
</span> -->
126118
</span>
127119
<!-- +N badge -->
128120
<span

0 commit comments

Comments
 (0)