getkirby / staticache

Static site performance on demand
MIT License
90 stars 9 forks source link

Multi-language setup #2

Closed iskrisis closed 1 year ago

iskrisis commented 2 years ago

Multi lang setup creates directories as url.language meaning

/projects creates /static/projects.en/index.html /cs/projects creates /static/projects.cs/index.html

Folder structure needs to follow url structure.

bnomei commented 2 years ago

i refactored the file method and other parts to allow for multi-language setups in my fork but it was a bit to many changes for a PR so i decided to publish my own version for now. i will happily archive mine once the original plugin is updated.

https://github.com/bnomei/kirby3-staticache/blob/f7b39180b28bfbe69cfcd5727bddac3e21038f31/classes/StatiCache.php#L21

lukasbestle commented 1 year ago