It would with coding changes. Thecurrent plugin detects the first H1 in the HTML and uses that for the post title and by default the post title is sanitized into the slug.
Are youhandy with PHP code? As this may be fairly specific then it may bebest to add a filter.
I have no PHP experience. Always willing to learn, though.
Is this in GitHub?
Also, the H1 comes through as the page title, and that’s terrific. Shifting to using the filename as a slug would retain that match for the URL calls. For index.html pages, you’d use the folder name or category as the slug, since that also matches the URL.
Not a complaint. This has been a real timesaver! Thanks!
github https://github.com/alanef/load-html-files
this is a little ahead of the plugin as I added a filter in preparation of custom slug generation
you are welcome to create pull requests but as mentioned elsewhere I will look at some of these as I get spare time.
I’ve offered a couple of changes in my fork:
https://github.com/ejnwebmaster/load-html-files
They address the slug and the post title issue.
Thanks for your efforts!