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.
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?
Strip out the title from the content before showing the excerpt
Splitting title and content before generating the Content object. <-- looks better.
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
That looks good, marmite will infer the
date
from the filename, thetitle
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 aPost
because containsdate
.The problem.
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?
Content
object. <-- looks better.