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

Pretty URLs #98

Open yestool opened 3 days ago

yestool commented 3 days ago

how to set pretty urls?

current: result: site/about.html ---> https://www.myweb.com/about.html want: result: site/about/index.html https://www.myweb.com/about/

rochacbruno commented 3 days ago

There is no support for this, this would require creating subfolders for each content with an index.html inside it.

I don't want it because it will not be a flat site anymore, will not be possible to just open the site on the browser without the need of web server and will require URL resolution.

I understand that some people prefer URLs without HTML in it, it can still be achieved if you configure your web server (nginx) to resolve it but is not a marmite feature.

Some of the design decisions are based on generated site being flat html.

So to implement subfolders, a shortcode on markdown would need to be provided to resolve URLs, this would require doing some pre-processing of markdown, build the URLs considering a base_path if site is not deployed to the root of domain.

I don't think we will go this path right now (unless someone submits a PR that doesn't break the flat site experience)

We already have Zola and Cobalt that are able to solve this.

anyway, Thanks for reporting.