-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve content editing features, enable preview and SEO (#59)
Why: - collection and content management had some issues, such as `Author` `slug` field not populating automatically (issue #13 ), social links were not being correctly pushed to the frontend; How: - this update fixes issue #13 by enabling author collection to generate a slug from the author name field; - SEO plugin is now enabled, allowing for content-specific meta to be generated from the dashboard; - Live preview and Page Preview are also now correctly enabled and available for all collections (screenshots below); - minor changes to how Author Socials' field are rendered, making them optional, improving clarity; - deleted unused collections and respective dependencies; - add improvements to content editing legibility and add a toolbar to give more options to the user instead of just relying on `/` commands; Screenshots: ## New Author socials fields ![imagem](https://github.com/user-attachments/assets/c3cd6149-d138-4f97-a2ae-b2864723b9e0) ## SEO Plugin Configuring meta description: ![imagem](https://github.com/user-attachments/assets/173de3f9-5f79-47c9-baf0-63f64c8c03ef) How it is rendered when sharing: ![imagem](https://github.com/user-attachments/assets/4ccb67aa-80cb-4473-a2bf-69e3757f0551) ## Live Preview ![imagem](https://github.com/user-attachments/assets/e303550f-0017-4819-bc99-298128b5dfad) ## Updated Lexical editor ![imagem](https://github.com/user-attachments/assets/0a1a10a4-1cbc-496c-bfd7-6f05a77ed3d7)
- Loading branch information
Showing
97 changed files
with
651 additions
and
6,451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.rich-text-lexical * { | ||
max-width: 600px; | ||
margin: 0 auto; | ||
line-height: 2em; | ||
} | ||
|
||
.rich-text-lexical h1 { | ||
font-size: var(--size-40); | ||
} | ||
|
||
.rich-text-lexical h2, | ||
.rich-text-lexical h3, | ||
.rich-text-lexical h4, | ||
.rich-text-lexical h5, | ||
.rich-text-lexical h6 { | ||
font-size: var(--size-28); | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
import { AuthorPill } from "@/app/_components/AuthorPill"; | ||
|
||
import SocialLinks from "@/app/_components/SocialLinks" | ||
export default function Contributors({ className, authors }) { | ||
return ( | ||
<div className={className}> | ||
<p className={"outline"}>CONTRIBUTORS</p> | ||
<p className={'outline'}>CONTRIBUTORS</p> | ||
{authors.map((author, i) => ( | ||
<div> | ||
{/* Author has to be passed as an Array for compatibility reasons */} | ||
<AuthorPill authors={[author]} /> | ||
<SocialLinks socials={author.socials} /> | ||
</div> | ||
))} | ||
</div> | ||
); | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.