Tirraa / dashboard_rtm

dashboard_rtm
MIT License
5 stars 1 forks source link

[Blog][Feature] Authors #138

Open gustaveWPM opened 3 months ago

gustaveWPM commented 3 months ago

Authors should be specified in a config file, then validated and injected in Metadata. ({ name: string; url: string }) + profilePicUrl + social medias + bio... https://github.com/Tirraa/dashboard_rtm/issues/58#issuecomment-2103451665

gustaveWPM commented 3 months ago

I made a mistake. I should NEVER have implemented the computed field for authors the way I did.

I'll just do an indexedAuthors computed field, like I did for blog tags, so as not to duplicate data unnecessarily in the app.

Calculating the access URL of the author's page could very well be done with a separate function in the SSG rather than in the Contentlayer generation. Bad shot, it happens...

EDIT: oh, damn, bio should NOT be declared only once in the authors mapping. It makes it impossible to translate. u_u I'm tired.


EDIT: this is fixed