Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for multiple authors in blog posts #33

Merged
merged 8 commits into from
Nov 14, 2024

Conversation

conradolandia
Copy link
Collaborator

This PR implements support for multiple authors in blog posts and OpenGraph image generation.

In a post, a single author still can be added as a string in the YAML header:

title: "This is an example post"
author: camgerlach
pub_date: 2023-12-19

Now, multiple authors should be added as an array:

title: "This is an example post"
author: 
  - camgerlach
  - ccordoba12
  - conradolandia
pub_date: 2023-12-19

As usual, the author must exist as a folder in /static/assets/authors, named after the author's GitHub username, containing an avatar image, and a metadata.json file with the following structure:

{
  "name": "C.A.M. Gerlach",
  "image": "C-Symbol-Logo-Full-V2.png"
}

The name field will be used in all instances as the author's name, and the image as the avatar.

Copy link

netlify bot commented Nov 13, 2024

Deploy Preview for spyder-website-preview ready!

Name Link
🔨 Latest commit 5c6a4b8
🔍 Latest deploy log https://app.netlify.com/sites/spyder-website-preview/deploys/67352e2ad569060008ecb6eb
😎 Deploy Preview https://deploy-preview-33--spyder-website-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ccordoba12 ccordoba12 added the enhancement New feature or request label Nov 14, 2024
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @conradolandia! Great work, as usual.

@ccordoba12 ccordoba12 merged commit aeb0c54 into spyder-ide:main Nov 14, 2024
2 checks passed
@conradolandia conradolandia deleted the multi-author branch November 14, 2024 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants