I just found that my previous change was reverted, which came as a surprise since I haven't been (made?) aware of the resulting compatibility issues. Anyhow, this resulted in nav-related issues returning, that I reported back then:
This PR makes another attempt at solving this, by applying Jinja template substitution to both page markdown and titles. You will be able to reproduce the above issue by commenting out page.title = self.apply_template(page.title) in on_page_markdown.
I also took the liberty to refactor a little and remove (presumably) dead code.
Hey,
I just found that my previous change was reverted, which came as a surprise since I haven't been (made?) aware of the resulting compatibility issues. Anyhow, this resulted in nav-related issues returning, that I reported back then:
This PR makes another attempt at solving this, by applying Jinja template substitution to both page markdown and titles. You will be able to reproduce the above issue by commenting out
page.title = self.apply_template(page.title)
inon_page_markdown
.I also took the liberty to refactor a little and remove (presumably) dead code.