mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-24 06:27:02 +02:00
feat(blog): author header social icons (#10222)
Co-authored-by: OzakIOne <OzakIOne@users.noreply.github.com> Co-authored-by: sebastien <lorber.sebastien@gmail.com> Co-authored-by: slorber <slorber@users.noreply.github.com>
This commit is contained in:
parent
8b877d27d4
commit
a6de0f2725
35 changed files with 1005 additions and 31 deletions
|
@ -251,12 +251,19 @@ type Tag = string | {label: string; permalink: string};
|
|||
// An author key references an author from the global plugin authors.yml file
|
||||
type AuthorKey = string;
|
||||
|
||||
// Social platform name -> Social platform link
|
||||
// Example: {MyPlatform: 'https://myplatform.com/myusername'}
|
||||
// Pre-defined platforms ("x", "github", "twitter", "linkedin", "stackoverflow") accept handles:
|
||||
// Example: {github: 'slorber'}
|
||||
type AuthorSocials = Record<string, string>;
|
||||
|
||||
type Author = {
|
||||
key?: AuthorKey;
|
||||
name: string;
|
||||
title?: string;
|
||||
url?: string;
|
||||
image_url?: string;
|
||||
socials?: AuthorSocials;
|
||||
};
|
||||
|
||||
// The front matter authors field allows various possible shapes
|
||||
|
@ -275,6 +282,9 @@ authors:
|
|||
title: Co-creator of Docusaurus 1
|
||||
url: https://github.com/JoelMarcey
|
||||
image_url: https://github.com/JoelMarcey.png
|
||||
socials:
|
||||
x: joelmarcey
|
||||
github: JoelMarcey
|
||||
tags: [docusaurus]
|
||||
description: This is my first post on Docusaurus.
|
||||
image: https://i.imgur.com/mErPwqL.png
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue