rochacbruno / marmite

Markdown makes sites - A Static Site Generator for Blogs
https://rochacbruno.github.io/marmite/
GNU Affero General Public License v3.0
435 stars 21 forks source link

[feat] Add author card to the posts #83

Closed rochacbruno closed 1 week ago

rochacbruno commented 1 month ago

when

marmite.yaml


  show_author_card: true
  authors:
    rochacbruno:
      name: Bruno Rocha
      avatar: ./media/rochacbruno.png
      bio: I am a person that writes text about things....
      links: [["Fedi", "https://go.rocha.social/@bruno"]]
    jondoe:
      ...    

Then on each post

# Hello
This is the post text

The above, as doesn't specify an author, the first author of the authors list will be assumed and will show on template (default on top) a card showing the information:

2024-10-25_16-51

(and also on lists but with a smaller size)

This will also require rendering a page author/rochacbruno.html using the group.html template and on that template there will be a list of author Bio and links.

If post has a different author, or even multiple authors then

---
extra:
  authors: ["jondoe"]
---
# Hello
This