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
139 stars 7 forks source link

A hint how to care for correct links? #66

Closed Anjade closed 2 years ago

Anjade commented 2 years ago

I dont have a bug, but a wish. Are there any ideas, how to handle pagination and links to tag-page, please? With the help of the author i have builded now all blog-pages and tag-pages, thank you very much for that.

Now i have problem with the links to the tag-pages (still /.../tag:tagname instead of /.../tag/tagname) and links in the pagination of the blog:

/api/generate-static-site /api/generate-static-site/page:2

Maybe i still have no perfect config?

If so. Are there any strategies how to handle the links, please?

Maybe?

1. The link is done with some php like: is this a static page build by the addon, then link to /.../tag/tagname, is this a normal kirby page, then link to /.../tag:tagname

is this a static page build by the addon, then link to /.../notes/n is this a normal kirby page, then link to /.../notes/page:n,

2. We change the links before we build the static pages? I dont have an idea, how to do that.

3. Better way?

I guess, it would be very helpful to give a hint how to care for correct links.

jonathan-reisdorf commented 2 years ago

Duplicate of https://github.com/d4l-data4life/kirby3-static-site-generator/issues/64