Skip to content

Commit 8651f3a

Browse files
committed
fix: use URL for author avatar
1 parent cf462ef commit 8651f3a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/AppHeader.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const { title, description, author, themes } = siteConfig
2222
<div class="header-logo mr-3">
2323
<a href="/">
2424
<img
25-
src={author.avatar}
25+
src={`${Astro.site}${author.avatar}`}
2626
alt="Author's avatar"
2727
class="rounded-full"
2828
style="margin-bottom: 0 !important;"

src/components/post/PostHeader.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const formattedDate = formatDate(pubDate)
3434
</div>
3535
<div class="flex justify-center m-3 text-start">
3636
<img
37-
src={siteAuthor.avatar}
37+
src={`${Astro.site}${siteAuthor.avatar}`}
3838
alt="Author's avatar"
3939
style="margin-bottom: 0 !important;"
4040
width="64"

src/configs/site.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
name: 'Le Minh Tri',
88
nickname: 'ansidev',
99
email: 'ansidev@gmail.com',
10-
avatar: '/ansidev.png',
10+
avatar: 'ansidev.png',
1111
homepage: 'https://ansidev.xyz',
1212
github: 'https://github.com/ansidev',
1313
twitter: 'https://twitter.com/ansidev',

0 commit comments

Comments
 (0)