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

🐛 fix page translations in multi-language + cli context #58

Closed jonathan-reisdorf closed 2 years ago

jonathan-reisdorf commented 2 years ago

Description

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

Motivation

Generated pages are not correctly rendered in their respective secondary languages in multi language + cli context. Turns out despite iterating over all pages, there is a remnant content cache attached to the local page object as a leftover from a previous render.

Testing

Generation via class + cli

Related issue

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