You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To merge the titles of the layout and content pages, the layout dialect will select the <title> element wherever it is within <head>, and in the process completely bypass any conditions outside of the element, hence why the conditions aren't hit in your first code example but they are hit in your second.
I can't think of a workaround for this at the moment as special processing of <title> is needed so that you only end up with one <title> in the final HTML 🤔
Well, lets leave it open. In the meantime we can use the second approach as a workaround. Maybe you or I or someone else will have a good idea in the future.
There seems to be an issue using conditional tags in the layout template:
The whole condition will be ignored and the title inside will be processed/rendered.
However this is working:
Tested with version 2.5.1.
The text was updated successfully, but these errors were encountered: