d4l-data4life / kirby3-static-site-generator

Static site generator plugin for Kirby 3+. With this plugin you can create a directory with assets, media and static html files generated from your pages. The result is an even faster site with less potential vulnerabilities.
MIT License
138 stars 7 forks source link

✨ support custom .html routes #50

Closed jonathan-reisdorf closed 2 years ago

jonathan-reisdorf commented 2 years ago

Description

Support custom .html routes in custom routes / urls. Previously, e.g. a custom route with foo/bar.html as a path would result in the following file being generated:

foo/bar.html/index.html

After this PR, .htm(l) at the end of a path is detected, leading to this file path:

foo/bar.html

This may hypothetically be a breaking change, so it comes as a minor and not a bugfix release.

Motivation

fixes https://github.com/d4l-data4life/kirby3-static-site-generator/issues/49

Testing

Starterkit / static-site-generator field

Related issue

https://github.com/d4l-data4life/kirby3-static-site-generator/issues/49