i‘ve some static files like 404.html or imprint.html, legal.html and more…
At the moment i‘ll save all these files under the static folder, but for some reasons i‘ll put some dynamic things inside (like minify dynamic css and more)
Is there a best practice to create dynamic .html files who have the location direct under the root (example: www.domain.tld/legal.html or www.domain.tld/legal/) i‘ve not found an example, or maybe i search for the false things…
Uh? What exactly do you mean by “dynamic”? It doesn’t seem to be something that isn’t static.
Maybe you’re talking about creating pages with different layout than the usual “single.html”? Like, if you wanted a layout for a “legal” page, for example, you could create a layouts/_default/legal.html and a contents/legal-stuff.md with the layout: "legal" specified at the front matter.