rochacbruno / marmite

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

[bug] Repeated title annoyance #84

Closed rochacbruno closed 4 days ago

rochacbruno commented 1 week ago

This problem comes from the fact that marmite tries to infer metadata when metadata is not provided, I like that because I want marmite to be zero config

However it comes with annoyance that we need to treat at rendering time.

2024-01-01-content.md

# What is marmite

**Marmite** is a simple, easy and opinionated static site generator, 
probably the easiest and simple to use.

That looks good, marmite will infer the date from the filename, the title from the first line of markdown and make a slug out of it.

So the end page will be /what-is-marmite.html and will be a Post because contains date.

The problem.

2024-10-25_17-00

On the list.html the title will be shown at the card header, and as the title was extracted from the content, it will be repeated.

Possible solution?