Skip to content

Commit

Permalink
Merge pull request #62 from julien-deramond/main-jd-gh-avatar-in-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
HiDeoo committed Jul 2, 2024
2 parents 2b58ddb + a1b0f61 commit 6fc029a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,8 @@ export default defineConfig({
title: 'Starlight Blog',
}),
],
image: {
domains: ['avatars.githubusercontent.com'],
},
site: 'https://starlight-blog-docs.vercel.app',
})
1 change: 1 addition & 0 deletions docs/src/content/docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,4 @@ A URL to link the author's name to.
**Type:** `string`

A URL or path to an image in the `public/` directory to display as the author's picture.
When using remote images, check out the [“Authorizing remote images”](https://docs.astro.build/en/guides/images/#authorizing-remote-images) guide to enable image optimization.
8 changes: 4 additions & 4 deletions docs/src/content/docs/guides/authors.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Authors can be defined in a blog post using the `authors` frontmatter property a
authors:
name: HiDeoo
title: Starlight Aficionado
picture: https://avatars.githubusercontent.com/u/494699
picture: https://avatars.githubusercontent.com/u/494699?s=200
url: https://hideoo.dev
---
```
Expand All @@ -26,10 +26,10 @@ Multiple authors can be defined using an array:
authors:
- name: HiDeoo
title: Starlight Aficionado
picture: https://avatars.githubusercontent.com/u/494699
picture: https://avatars.githubusercontent.com/u/494699?s=200
url: https://hideoo.dev
- name: Ghost
picture: https://avatars.githubusercontent.com/u/10137
picture: https://avatars.githubusercontent.com/u/10137?s=200
url: https://github.com/ghost
---
```
Expand Down Expand Up @@ -62,7 +62,7 @@ A blog post frontmatter can also reference a global author using the key of the
authors:
- hideoo # Will use the author defined in the configuration with the `hideoo` key.
- name: Ghost
picture: https://avatars.githubusercontent.com/u/10137
picture: https://avatars.githubusercontent.com/u/10137?s=200
url: https://github.com/ghost
---
```

0 comments on commit 6fc029a

Please sign in to comment.